Search Unity

Shadowmask bakes direct lighting for some mixed lights but not for others

Discussion in 'Global Illumination' started by MOLB, May 19, 2022.

  1. MOLB

    MOLB

    Joined:
    Dec 19, 2012
    Posts:
    41
    I'm using the Progressive GPU lightmapper for my scenes and the shadowmask lighting mode. When I go to the baked lightmap view I can see that some mixed lights don't get their direct light baked into the lightmap but others do, even if they're the exact same prefab with their respective light setup.

    Basically, when I have two identical mixed lights but at different positions, only one gets baked into the lightmap and the other not.

    What is causing this behavior and how can I prevent it?
     
  2. MOLB

    MOLB

    Joined:
    Dec 19, 2012
    Posts:
    41
    Turns out you can have a maximum of 4 overlapping mixed lights in shadowmask mode, so there's that. Can I increase this number anywhere, or is it a fixed limitation?
     
  3. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Unfortunately, this is a hard limitation, as there are only four channels (RGBA) channels available for use...