HDR Environment causes weird lighting

I managed to set up an .hdr image as environment texture. Everything seems to work fine but some neighboring meshes that have the same material look very different from one another.

with no environment texture + hemispehric light, everything seems fine.

any idea what might be causing this behavior?

Is your .hdr file an equirectangular picture? How are you loading it in your scene?

If you have a PG that could help too.

It’s an hdr file from hdrihaven. 2k version of this one: Poly Haven

I load it like this:

var hdrTexture = new BABYLON.HDRCubeTexture(“./assets/Textures/environment.hdr”, scene, 128, false, true, false, true);
scene.environmentTexture = hdrTexture;

I tried to create an env file in the sandbox and load it as prefiltereddata, but the result was the same. (actually not quite… the part that looks darker with the .hdr file looks lighter when I use the env file).

1 Like

That seems ok to me.

Are you able to setup a PG so that we can have a deeper look?