How to add more than 4 lights in a scene

I met this problem when using babylon, and doc said “The default number of lights allowed is four but this can be increased”. Now I have a scene with several rooms, shall I set all maxSimultaneousLights property of materials larger than 4? Is that a good way to do it?
sorry for poor english:(

Quick & dirty answer : yes (here an example on playground, play with l.28 value).

But you may be interested by the includedOnlyMeshes light property which should be more optimized for your use.

2 Likes