Exemplo n.º 1
0
        public void OnRenderImage(RenderTexture source, RenderTexture destination)
        {
            if (CheckResources() == false)
            {
                Graphics.Blit(source, destination);
                return;
            }

            saturationMat.SetTexture("_MaskTex", maskGen.GetMaskTex());

            saturationMat.SetFloat("_Saturation", saturation);
            saturationMat.SetFloat("_Brightness", brightness);

            Graphics.Blit(source, destination, saturationMat);
        }
Exemplo n.º 2
0
 void OnRenderImage(RenderTexture source, RenderTexture destionation)
 {
     RaycastCornerBlit(maskGen.GetMaskTex(1), maskGen.GetMaskTex(2), pulseMat);
     maskGen.SwapBuffer();
 }
Exemplo n.º 3
0
 public void OnRenderImage(RenderTexture source, RenderTexture destination)
 {
     Blur(maskGen.GetMaskTex(1), maskGen.GetMaskTex(2));
     maskGen.SwapBuffer();
 }