Create a linear-depth ShaderMaterial that writes (d, d, d, 1) per fragment. The depth is computed from the view-space z, normalized by the supplied near/far range (or 0.03/15 by default). Override per material via the nearFar custom uniform.
(d, d, d, 1)
nearFar
Create a linear-depth ShaderMaterial that writes
(d, d, d, 1)per fragment. The depth is computed from the view-space z, normalized by the supplied near/far range (or 0.03/15 by default). Override per material via thenearFarcustom uniform.