Hello, I have a security camera with a mesh that desaturates a part of the environment. But I want the spotlight transforms base color of objects in black and white. (In particular if the player enters in the security camera's area.) LightFunction don't accepts sceneTexture. Thank's
What you want is location based materials. Watch this tutorial for tips https://www.youtube.com/watch?v=XYPPd5oLoPM
He uses the sphere mask for opacity in the video, but I would recommend using it as an alpha input and lerp between your colored character and a desaturated version in the material. Just make sure the security camera's spotlight position is being passed into the vector parameter. Here is a screenshot example.
Hope that helps,
answered Nov 01 '16 at 07:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here