Issue when changing maxSimultaneousLights value

Hello,

I found an issue when changing the value of maxSimultaneousLights of a material : the lights do not stop shining !

Take a look at this playground :

Note that the material’s maxSimultaneousLights value goes down back to 1 in the console, but it doesn’t show in the render.

Thanks for looking at it !

Checking…

Nice catch! Here is the fix:

2 Likes