Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. 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:
    160
    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,836
    Sounds like you should do the opposite, deselect everything and enable 4 layers per light.
     
  3. Crystalline

    Crystalline

    Joined:
    Sep 11, 2013
    Posts:
    160
    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,836
  5. Crystalline

    Crystalline

    Joined:
    Sep 11, 2013
    Posts:
    160