Hi!
Add .customDepthMaterial
and/or .customDistanceMaterial
, depends on the type of light source(s), copying the same changes in vertex shaders like you did in MeshStandardMaterial
.
A simple example is here: Mesh points to the camera on only 2 axis with shaders - #10 by prisoner849