I’ve been chasing a console error today and tracked it down to the enabling of a spotlight I’m using as a cursor on a ground plane.
[.WebGL-000014C400217600] GL_INVALID_OPERATION: It is undefined behaviour to use a uniform buffer that is too small.
If instead I just set the intensity to 0 and 20 instead of enabling / disabling it, I can prevent the error, but wouldn’t it be better to disable it when it’s not shown in the scene?
Any idea which uniforms I should be looking at? I’m worried at how long / how much code I’d have to move over to playground to provide a reproducible example, so I’m just looking for ideas on things to look at.