I just upgraded to 3.3, and I noticed that point lights are not affecting terrains anymore. And strangely some point lights will work while others don’t. (even with the exact same color, radius, and parentNode)
When I add a new light to the scene with a terrain, it lights up all the models in its radius except the terrain. However if I cut/paste the terrain so that it is essentially reloaded, then the point light begins affecting it properly. So the shader is working with some point lights, but some point lights that are attached after the terrain do not seem to be getting passed to the shader.
Does anyone have any thoughts on what may be causing this or what I could do as a work around?
Edit: I should also mention that the issue occurs with my custom PBR terrains but not the stock terrain shader, so I thought it was a bug in my shaders at first… but since some point lights work with my shader then I think the code is okay, so I don’t know if it is a problem that I can solve within the .j3md .frag and .vert files, in which case I am lost on where to look next