Search Unity

Turn off Distance Shadowmask for specific objects?

Discussion in 'Global Illumination' started by Ignacii, Jan 22, 2019.

  1. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    108
    Hi!

    Is it possible to turn off Distance Shadowmask for specific objects? I want some shadows to stay totally baked and others to use Distance Shadowmask.

    Thanks
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    In HDRP, you can specify shadowmask mode for punctual lights per-light basis. Look for the toggle underneath the Shadows header in the light inspector.

    Built-in render pipeline does not support this feature.
     
  3. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    108
    Feels like a useful thing to be in built-in render pipeline too.
    My problem is that mountain's shadow is very far away, thus very blurry when lightmapped. Realtime shadows are too sharp to blend nicely with baked blurry shadows in distance shadowmask mode.

    Ačiū :)