PBR materials with Reflection Probes rendering darker

I’m having trouble generating a PBR material that reflects the reflection probe cubemap while maintaining its albedo color properly.

Here’s the playground https://playground.babylonjs.com/#FEEK7G#907

I’m expecting the sphere in the middle to look like this
Screenshot 2023-11-06 at 1.00.30 PM

But, I’m getting something like

If you comment out the line that sets the reflection texture you will see you will get the glossy yellow sphere that I want. So it seems that adding the reflection texture is actually changing the way the light interacts with the albedo?

You need to add the skybox in the probe or it will be full of the babylon blue clear color ending up providing the dark yellow green-ish you see https://playground.babylonjs.com/#FEEK7G#908

1 Like

Thanks @sebavan that worked!

@sebavan is it possible to have unlit pbr materials show reflections?

I tried in https://playground.babylonjs.com/#FEEK7G#909 but looks like making the material unlit make it not show any reflections.

The idea behind making an unlit material is that I don’t have to worry about adding a hemispheric light as the base light to illuminate the PBR materials.

No, an unlit material bypasses all lighting calculation and only takes into accout the albedo, ambient and emissive colors.

1 Like