Quantity of pointerLights

PG: https://www.babylonjs-playground.com/#JPWEAT

Tell me why only four point lights turns out to be placed?
Maybe I’m doing something wrong?

We limit the amount of lights per object to only 4 by default for perf reasons you can change it via material.maxSimultaneousLights

1 Like

I wanted to create a city with lanterns, as I understand it, is it a bad idea to use pointlights?

All the materials used on meshes requiring more the 4 point lights.

The more point lights the less perf si you could also use the specific light.includedOnlyMeshes or light.excludedMeshes to control which of the point lights will impact what.

1 Like