Shaders and shadows


Is it possible to have the shadows calculated after the vertex shader execution? This might be nonsense to the experts so what I mean is how can I have the shadows reflect the changes in positions I do in the vertex shader? For now, I have the shadow of the original object, not the modified one.

Thank you

It seems I have to use customDepthMaterial but I found very little information or examples on the subject except for this one: threejs/webgl_animation_cloth.html at e2f0b4108bd76eee600128dc61d2a2f2f1a379e1 · timoxley/threejs · GitHub

It looks like I’ll have to go grope on this… :sweat_smile: