Search Unity

Question Inverted shadows on shadow cascade border in WebGL (2022.2.14f1)

Discussion in 'Universal Render Pipeline' started by Duncan_Nat, May 23, 2023.

  1. Duncan_Nat

    Duncan_Nat

    Joined:
    Feb 7, 2022
    Posts:
    1
    Hi everyone,
    I am experiencing a weird problem with shadows when building for WebGL. For some reason, there is a circle around the main camera that inverts the shadows on the terrain (see attachment). I can't figure out what causes this problem since it doesn't show up while playing the game in Unity. I did figure out that the line occurs at the distance of the shadow cascades that are set in the UniversalRenderPipelineAsset. does anyone have an idea what can cause this? I already tried turning the cascade count to 1 but that removes the shadows completely when building.
    upload_2023-5-23_10-18-21.png