- Home /
Is there a maximum number of lights?
I have a Unity game in which I have many lights. (2 directional, 127 point). I find that some of the point lights do not work. What is causing this? Is there, as I suspect, a maximum number of lights? Or something else?
(As an aside, it seems that the lights only function on a certain terrain, of which I have six).
I'll answer any questions required to help me. Thank you.
Answer by whydoidoit · Apr 12, 2013 at 11:57 PM
The maximum number of lights used on a single renderer depends on the shader being used and also on the quality settings for the number of point lights: Edit > Project Settings > Quality. Normally you don't allow more than 4 to affect an object:
Are you sure that's not just pixel lights? All my point lights are vertex.
8 Vertex lights maximum I believe - though most of the shaders handle 4
There is a technique called Virtualized Lights. It basically means using only X number of closest lights, unsure if Unity implements it though. If not, you can do it yourself.
Your answer
![](https://koobas.hobune.stream/wayback/20220613100217im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Light flicker causing horizontal black bars. 0 Answers
Unity Fog Problem 0 Answers
Why CYAN is default object color (with default materials & shaders) 0 Answers
Weird Point Lighting 1 Answer