Ejemplo n.º 1
0
        private void Blit(Texture from, RenderTexture to, Shader shader)
        {
            if (shader)
            {
                EffectMaterial.shader = shader;

                if (postProcessMethod == PostProcessMethod.GlBlit)
                {
                    QcUnity.BlitGL(from, to, EffectMaterial);
                }
                else
                {
                    Graphics.Blit(from, to, EffectMaterial);
                }
            }
            else
            {
                Graphics.Blit(from, to);
            }
        }
Ejemplo n.º 2
0
 public static void BlitGL(Texture source, RenderTexture destination, Material mat) => QcUnity.BlitGL(source, destination, mat);