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

BUG: SRP ScriptableRenderContext.DrawShadows broke in 2020.2.x when called multiple times

Discussion in 'General Graphics' started by zezba9000, Feb 22, 2021.

  1. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    985
    Have a custom SRP where shadow cascades render into their own textures not in a single tiled texture.

    In Unity 2020.2.5 only the first "ScriptableRenderContext.DrawShadows" works correctly then further cascade levels fail to take into account different "ShadowDrawingSettings(shadowCullingResults, 0)" settings when DrawShadows is called again.
    upload_2021-2-21_17-23-35.png
    Image NOTE: Second shadow cascade at this distance isn't working.

    In Unity 2019.4.20 LTS the SRP ScriptableRenderContext.DrawShadows works correctly.
    upload_2021-2-21_17-24-46.png
    Image NOTE: Second shadow cascade at this distance works correctly.


    Both custom-SRP code bases are identical when I tested between Unity versions!
     
  2. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    985
    Unity 2021.1.0b7 with SRP 11 has the same issue as well
    upload_2021-2-21_22-34-30.png
     
  3. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    985