hi all,
i'm making an animation were i need a shader with color value based on distance of object from camera.
i.e. if object is close to camera it's red , in the middle it's pink , far - it's white.
as i know it's possible to make such shader, but i don't know how
can anybody help me , please