So excited to be working on this!
I’m having difficulty understanding the lighting techniques though. So when you create a material you need to give it a lightpicker in order to receive and cast shadows correct?
But what happens when the light isn’t created yet? If you add a light to a scene, how do you get it to be applied on the existing meshes?
With one pointlight already added and casting shadows, I later try to create a new light and pushing the newly created light into my light picker, ie.
staticLightPicker.lights.push(new PointLight())
but the newly added light has no effect. Do I need to call an update of some sort?
One really good comprehensive example, showing all the different ways to set up materials and lights would go a long way. The API documentation is a little cryptic, with enticing sounding properties/methods like, diffuseLightSources, collectLights(), and fogMethod, but not a lot of demonstration on how to use them. Tell me and I will be happy to create a tutorial to share!