Hello I am using the LW template and I tried to make a post process shader. This is the script attache to the gameobject that hold the main camera Code (CSharp): using UnityEngine; using System.Collections; public class ViewEffect : MonoBehaviour { public Material mat; void OnRenderImage(RenderTexture src, RenderTexture dest) { Debug.Log("Test"); Graphics.Blit(src, dest, mat); } } Can someone help me to figure out why is it not working ?
What is srp ? and well i'm now stuck. I have a black and white renderTexture and I want to blend the current camera with: the black color make the pixel in gray color and the white color make the pixel normal and I can't figure it out how.
Let me answer my problem since I've found how to implement a post processing shader for LWRP : You need to use the Post processing Stack 2 and follow this tutorial : https://github.com/Unity-Technologies/PostProcessing/wiki/Writing-Custom-Effects
So do I need to install Stack V2 on top of LWRP? There is stack v1 I believe that comes with lwrp. But custom effects dont work on mobile when using it.
Hey, i have the same code and problem as you, but i'm not working on LWRP, it's just the 3D common template, how do i fix this?
hi any updates on this? perhaps a sample code? would have been ideal if shader graph had some basic master node to support image effects.
the only update i can provide from my side is that i thought i was working in the 3D template but i was actually on LWRP, sorry about that