Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Get depth in material shader

$
0
0
How would I go about retrieving the linearized depth in a material shader? Or is it impossible and only possible in a postprocess shader? Edit: I am talking about the depth of the Z buffer, not the depth of the current vertex.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>