Is it possible to gradually change the rendering of items from colored to gray depending on the distance to the player? And exclude certain items from this effect?

Hello.

I am not sure if it actually goes into rendering section.
I am trying to find a way to make everything, with some exceptions, render as gray when they are over a set distance away from the player, gradually gaining/losing the color depenging ont he distance.
For example, everything less than 10 meters away are normally colored, and from 10 to 15 meters away the gradually become gray untill everything from 15 meters and further are completely gray. And to have some items not be affected by this effect and be rendered in their normal color regardless of distance.

You can do it for everything with a post process volume, but then you couldn’t exclude certain objects. To be able to do that, you need to put a special material on the objects you want to have fade, and normal material on the special ones.

The material uses pixel location and camera location to fade the color. Will do an example…

Try something like:

327813-fade.gif

It worked wonderfylly.
Thank you very much, i went and marked this as the answer.:smiley: