- Home /
Shader - Object Depth
I would like to retrieve the depth of an object but in a normalized way, I mean not dependant to the camera distance.
I know that it's possible to retrieve the depth of the scene and with a shader apply it on the object.
But is it possible to normalize it? The depth should not be dependent to the distance of the camera.
How can I do that ?
Thank you !
Comment
Your answer
Follow this Question
Related Questions
ZBuffer and Object Depth 1 Answer
tangent space viewDir in a SurfaceShader 0 Answers
Surface Shader World Normal 0 Answers
Shader that renders fragment behind 0 Answers
How can I get correct lighting on a low poly water shader? 1 Answer