Unlimited lights in verson 7?

Had to take some time off from my game project… was excited to come back to BabylonJS and find a new version. In the “new features” list I saw the thing I’ve been hoping for, for years:

  • Unlimited lights (points, directionals, spots, hemispherics)

How do I enable this? I tried just increasing material.maxSimultaneousLights but it still doesn’t work with anything more than 12 (maybe 13?) lights.

It’s on the front page of the main website. Scroll down to where it says “full list of features,” which takes you to this:

1 Like

Ok but just to be clear, we’re still limited to 12 or so lights, depending on how big the browser allows a shader to be, right?

1 Like

I agree this should be changed on the website

cc @PatrickRyan ?

I’m happy to make the change. What should we say instead? Is there a hard limit or is it browser dependent?

It depends of the rest of the material setup :frowning: I think we could remove the line but keep the types somewhere

1 Like

Merged Quick change to light types to avoid confusion by PatrickRyanMS · Pull Request #704 · BabylonJS/Website (github.com)

1 Like