Search Unity

Question When vertex animation the shadow is wrong in URP

Discussion in 'Shaders' started by ununion, Apr 23, 2021.

  1. ununion

    ununion

    Joined:
    Dec 2, 2018
    Posts:
    275
    When i using vertex animation shader,the shadow is not follow mesh changes,so I try to modify "shadowCasterPass.hlsl" and set vertex move like main pass,then I get right effect.
    But, When i create more than one object and each one has difference vertex animation,the shadows show same animation.
    So where is the problem?
    thanks