Hi
There is my codesandbox,
- using instanceMesh
- using extend meshstandardmaterial, edited the vertex with noise for spheres
- using customDepthMaterial’s onBeforeCompile function to correct the shadow
Finally, I want to edit the instanceMatrix in the extendShaderMaterial.
Therefore, I can edit mesh position with curl noise.
Which value should I edit in customDepthMaterial ‘shader’ that equal to instance matrix?