Correct shadow after vertex displacement

I changed the vertex position in the vertex shader, what should I do to make the shadow correct?
Currently, the shadow does not respect any change in the vertex shader.

It may sound like a trivial reply, but you have to change vertex position in shadow shader as well.

1 Like

Thanks @Eugene!
Definitely! A trivial reply from an expert can save a day for a newbie!

I somehow mistakenly thought the shadow map is using the same vertex shader with a light pass predefines, etc. Now I see it uses Shadow.glsl in the technique pass.
Still learning the Urho3D rendering pipelines.