Closed Wagyx closed 6 months ago
EnvironmentLight is still experimental and will only work if you use PhysicalMaterial node, you then should set the diffuseTexture and specularTexture field. Here are some image that will work https://github.com/KhronosGroup/glTF-Sample-Environments/tree/b710a9fe6bcdfb8965530ede36e8279c298261de. A blurred image will be good for diffuse.
Otherwise DirectionalLight, SpotLight, or PointLight are your friends.
The default light is a DirectionalLight, which is tied to the Camera, it can be toggled on/off with a NavigationInfo node, with the headlight field. https://create3000.github.io/x_ite/components/navigation/navigationinfo/#sfbool-in-out-headlight-true
Okay, I think I'll make a new DirectionalLight with ambient intensity only since I don't have a need for a texture now.
If you turn on DirectionalLight.ambientIntensity you should also adjust Material.ambientIntensity. ;)
Hello there, I have tried adding an environment light with a color to a default scene with a white cube and the cube remains white.
I would appreciate your help a lot, what am I doing wrong (again ...) ? Also what is the default light in the scene ? Is it a DirectionalLight or a PointLight on the camera ? How can we change it ?