I am trying to create a transparent GameObejct in Unity that if active, changes the color hue of anything behind it by 180 degrees. The effect can be easily seen in Photoshop if my explanation is not good enough.
I can guess I will need a shader for this, but my shader making knowledge is quite limited as of now, so any help would be appreciated.
Thank you!
You can take the shader from this post and make the following adjustments:
1) Add a GrabPass here
2) Then add a variable for the grab texture here:
3) Change the HueShift property to a range (for ease of use):
4) Change the Input struct to contain screenPos:
5) Then finally update the fragment shader to read from the GrabTexture:
The final result looks like this:
Here is the final shader for reference and in case I forgot to mention one of the changes:
Credits to Beeky for the original code.