Search Unity

Shadow distance on ScreenSpaceReflections

Discussion in 'General Discussion' started by Cascho01, Nov 4, 2021.

  1. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,347
    Hi,

    I have raytraced reflections enabled on some glass-surfaces and the reflected shadows seem to get clipped at some distance and I don´t find any settings to fix that.

    upload_2021-11-4_17-7-44.png

    Any help is very welcomed - thanks.
     
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,620
    You mention Screen Space Reflections and Raytraced Reflections. Which one are the shadows coming from?

    Note that the end of the shadow seems to correspond with the bottom of the camera frustum. Do out-of-frustum shadows exist for the raytraced reflections to use?
     
    Cascho01 likes this.
  3. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,347
    Thanks very much for helping.

    I have raytracing enabled for the scene.
    The glass has "Recieve SSR Transparent" enabled.
    No matter if the shadows of the sun are ScreenSpace / Raytraced or not, they get clipped.
    It´s indeed the camera frustum, where can I configure "Out of frustum shadows" ?

    I tried Light.useViewFrustumForShadowCasterCull on my sunlight, but it does not change anything.
     
    Last edited: Nov 5, 2021
  4. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    765
    There is a setting in the RayTracing Settings override that should just do that. The idea is to increase the validity area of the shadows outside the camera frustrum.

    upload_2021-11-15_19-35-44.png
     
  5. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,347
    Does not change anything here.
    Do I have to enable Extend shadow culling or something somewhere else?
     
  6. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    765
    Nope, this should be enough, so if this doesn't help, it means that wasn't the issue !
     
    Cascho01 likes this.
  7. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,347
    Strange