Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question 2021.1.0b1 Static and Dynamic Shadows don't work with one-another

Discussion in 'Universal Render Pipeline' started by SgerbwdGwyn, Jan 3, 2021.

  1. SgerbwdGwyn

    SgerbwdGwyn

    Joined:
    Dec 2, 2013
    Posts:
    25
    With subtractive lighting in a scene with mixed static/nonstatic objects and a "mixed" directional light this is the result:
    upload_2021-1-3_18-36-42.png

    The dynamic objects shadow the dynamic objects, the static objects shadow the static, but static can't shadow dynamic nor can dynamic shadow static.

    Basically the mainlight.shadowAttenuation method for getting shadows in a shader doesn't appear to factor in static shadows, so objects with the stylized shader only receive realtime shadows, not baked.
     
    Last edited: Jan 3, 2021