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

Dim Lights and Light Count

Discussion in 'Editor & General Support' started by Jonathan Czeck, Oct 26, 2005.

  1. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    If a light is near black, will it get counted against the 8 lights per object limit if there are brighter lights that should get counted instead?

    Would it be worth my time to separate the light into a different object that I can set active on and off?

    In the inspector there is a checkbox on the Light component to set active. I don't think you can do this from scripting, though.

    Thanks!
    -Jon
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    We automatically pick the brightest lights affecting each object.
    A light then gets classified as pixel light or vertex light. The dimmest lights get thrown off.

    Light derives from behaviour. The checkbox you see in the editor is the Behaviour.enabled checkbox. (light.enabled = false)
     
  3. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Okay, great. I think I'll just let Unity do the light culling for me, then. :)

    -Jon