Archive 17/01/2023.

Correct shadow after vertex displacement

UrhoIsTheBest

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.

Eugene

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

UrhoIsTheBest

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.