Search Unity

Feature Request Per light shadow mask control

Discussion in 'Global Illumination' started by Stroustrup, Jul 21, 2020.

  1. Stroustrup

    Stroustrup

    Joined:
    May 18, 2020
    Posts:
    142
    I'm having to bake mixed lights firstly in indirect mode, then bake in shadowmask mode, then combine the first indirect maps with the second shadow maps.
    this is because i can't have light auto set to baked when the 4 light limit is reached when doing shadowmask, so i remove any lights i want to only bake indirectly then add them back in

    it would be nice if there was some option to choose which of the 4 lights should have baked shadow maps and chose whether the rest of the lights should be fully baked or baked indirect

    so like instead of chosing:
    Realtime, Mixed, Baked

    you choose:
    Realtime, BakedIndirect, BakedShadowmask, Baked
     
    Last edited: Jul 21, 2020
    Kitamat likes this.
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    HDRP allows you to specify the shadowmask mode on a per-light basis.
     
  3. Stroustrup

    Stroustrup

    Joined:
    May 18, 2020
    Posts:
    142
    but that's only for runtime, no? when i set the light to distance shadowmask, it still gets fully baked when going over the 4 light limit when i need it to be baked indirect
     
    Kitamat likes this.