# Unlimited lights in verson 7?

**URL:** <https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [May 22, 2024, 4:40am UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741 "2024-05-22T04:40:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pat\_lvl17](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@pat\_lvl17](https://forum.babylonjs.com/u/pat_lvl17)\
**Post date:** [May 22, 2024, 4:40am UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/1 "2024-05-22T04:40:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pat\_lvl17](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@pat\_lvl17](https://forum.babylonjs.com/u/pat_lvl17)\
**Post date:** [May 22, 2024, 6:54am UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/3 "2024-05-22T06:54:54Z")

</div>

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:

> **[Babylon.js: Powerful, Beautiful, Simple, Open - Web-Based 3D At Its Best](https://babylonjs.com/specifications/)**
>
> Babylon.js is one of the world's leading WebGL-based graphics engines. From a new visual scene inspector, best-in-class physically-based rendering, countless performance optimizations, and much more, Babylon.js brings powerful, beautiful, simple, and...

---

<div class="post-metadata">

**Author:** ![pat\_lvl17](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@pat\_lvl17](https://forum.babylonjs.com/u/pat_lvl17)\
**Post date:** [June 4, 2024, 5:11am UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/5 "2024-06-04T05:11:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 4, 2024, 1:53pm UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/7 "2024-06-04T13:53:11Z")

</div>

I agree this should be changed on the website

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/b/2bbdeb54722b8bb76744c6f88a5799e6119c2d11.png)

cc @PatrickRyan ?

---

<div class="post-metadata">

**Author:** ![PatrickRyan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/patrickryan/32/3417_2.png) [@PatrickRyan](https://forum.babylonjs.com/u/PatrickRyan)\
**Post date:** [June 4, 2024, 7:18pm UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/8 "2024-06-04T19:18:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 4, 2024, 7:28pm UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/9 "2024-06-04T19:28:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PatrickRyan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/patrickryan/32/3417_2.png) [@PatrickRyan](https://forum.babylonjs.com/u/PatrickRyan)\
**Post date:** [June 10, 2024, 5:54pm UTC](https://forum.babylonjs.com/t/unlimited-lights-in-verson-7/50741/11 "2024-06-10T17:54:00Z")

</div>

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