I added a spotlight to a Unity scene and instead of just adding light, the surrounding environment got darker. What is happening here?
![](https://uploads.gamedev.net/forums/monthly_2023_01/e529a5b7dbd74e25bd3011b42dc92a46.No-Spotlight.png)
![](https://uploads.gamedev.net/forums/monthly_2023_01/4d218f05585a4c04bd62b959646d7552.Spotlight.png)
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
I added a spotlight to a Unity scene and instead of just adding light, the surrounding environment got darker. What is happening here?
Some possibilities:
@Aressera Thanks a lot! I increased the max number of lights. Also gonna try switching to deferred
I'm curious: when some lights are ignored, is there no way to get an explicit warning from the Unity engine? Trial and error doesn't seem a very efficient workflow, not all missing lights are as visible as the one in the OP's screenshots.
LorenzoGatti said:
I'm curious: when some lights are ignored, is there no way to get an explicit warning from the Unity engine? Trial and error doesn't seem a very efficient workflow, not all missing lights are as visible as the one in the OP's screenshots.
I don't know how Unity works internally, but in my engine the decision to cull lights is made for every mesh that is rendered, so a light might affect the objects closest to it, but would be culled for farther objects. So, if such a warning or logging was made by Unity, it would probably produce a huge number of culled lights in most scenes, since most lights would be culled for some object. So, such a warning would be not very useful.