Error spotted by @Necips on my Forest beta, that I haven’t seen before. The culprit is a rig of lights (16) affecting a material that’s been given
material.maxSimultaneousLights=16; to support all of them. WebGL 2 browsers throw this error and fail to compile the shader.
Does anyone know, is this a hard limit in WebGL 2? Is it implementation-specific?
Edit: Nope, cloning the lights doesn't help.
I’m going to try using the
DirectionalLight.clone() method to create the lights in the rig, to see if perhaps that allows the shader to pack them into a single
Any advice is appreciated. (Meantime, I’m using fewer lights as a stopgap.)