Example #1
0
        //<B.M>
        public static PostProcessEffect GenPostProcessEffect(string effectName, Shader shader, PostProcessEffect.TextureShaderMethod textureShaderMethod)
        {
            var ppe = new PostProcessEffect(shader, textureShaderMethod);

            postProcessEffectDictionary.Add(effectName, ppe);

            return(ppe);
        }
Example #2
0
 //<B.M>
 public static PostProcessEffect GenPostProcessEffect(string effectName, string shaderName, PostProcessEffect.TextureShaderMethod prepRender)
 => GenPostProcessEffect(effectName, shaderDictionary[shaderName], prepRender);