0
$\begingroup$

Is there a method of controlling EEVEE shader node values based on distance from the camera? (Something like "Light Path > Ray Length" provides for Cycles shaders.)

I know you can render a Z-depth pass for compositing, but I would like to use this information in a shader node.

Any suggestions?

$\endgroup$
0
$\begingroup$

Found the answer to my own question: the "Camera Data" input node has "View Distance" and "View Z-Depth" outputs.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.