Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Can directional lights and point lights raytrace shadows simultaneously?

Discussion in 'HDRP Ray Tracing' started by Deleted User, May 6, 2022.

  1. Deleted User

    Deleted User

    Guest

    When my sun gameobject is active, my point lights switch from raytraced to normal. When I set active to false, they switch back to raytraced. Is this supposed to happen, and is there a way to have both work? Or can I only choose one?
     
  2. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    766
    Hey, you need to increase maximum screen space shadow in your current HDRP asset (by default it's set to 4 IIRC).
    Directionnal light raytraced shadows (especially if it's colored) takes 3 of those screen space shadows, area lights 2, and punctual light 1, so when the max number is reached, the shadows fallbacks to rasterization.

    upload_2022-5-10_17-53-1.png
     
    jeremedia likes this.
  3. Deleted User

    Deleted User

    Guest

    that did it
    thank you very much
     
    chap-unity likes this.