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.
↧