Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Excluding only 4 layers in the cull mask

Discussion in 'General Graphics' started by Crystalline, May 10, 2018.

  1. Crystalline

    Crystalline

    Joined:
    Sep 11, 2013
    Posts:
    168
    And still getting the error.

    Too many layers used to exclude objects from lighting. In deferred only up to 4 layers can be used simultaneously, scene would need 12.

    For each light i selected everything, then disabled 4 layers.(based on what i needed).
    Any ideas?
     
    ksam2 likes this.
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
    Sounds like you should do the opposite, deselect everything and enable 4 layers per light.
     
  3. Crystalline

    Crystalline

    Joined:
    Sep 11, 2013
    Posts:
    168
    Hmm..strange. Thats what i heard from other people.
    I will try your suggestion though. It would be great if the docs would be a bit more clear too!

    Thanks for the reply.
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
  5. Crystalline

    Crystalline

    Joined:
    Sep 11, 2013
    Posts:
    168