Hi there
I’ve been working on a scene where I add an environment texture such as:
const environmentTexture = new HDRCubeTexture(
'./../game/environment/studio_small_09_1k.hdr',
scene,
128,
false,
true,
false,
false,
);
scene.environmentTexture = environmentTexture;
All works as expected, I get proper reflections on PBR materials and some environment “illumination” but…
Whenever I try to add any lights, even the simplest spotlight or hemisphere, it doesn’t affect the scene?
I wanted to add lights to then be able to cast shadows with the ShadowGenerator.
I tried to add many lights of different intensities with a ShadowGenerator adding all meshes or not to be affected by light but the whole scene seems unaffected.
I also tagged all the meshes’ properties with mesh.receiveShadows = true
but nothing.
I followed this guide: Shadows | Babylon.js Documentation
Anything stupid I might be missing that does not make sense? Is HDR within babylonjs compatible with casting/receiving shadows?