Desaturate SpotLight

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

Hi François,

What you want is location based materials. Watch this tutorial for tips - YouTube

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,

Ed

113329-temp.jpg

Thank you, this is very interesting, I think that’s complementary with my solution. I use PostProcess component with a trigger.

113461-bw_cam.gif