Same box with default_pbr or custom pbr has different effect

Box withouth pbr and gltfLoader attach default pbr to box:

Box with pbr:

Lighting effect in box is different,why?


Use meshBuilder create box with pbr material:

It sames as Babylon.js Playground (Box withouth pbr and gltfLoader attach default pbr to box)

The albedo color you use in your material is different from the albedo color used in the default material:

Your material:
image

Default material:
image

2 Likes

Sorry I didn’t make the question clear.
My question is that the lighting effect on the back of the box is different.

Box withouth pbr and gltfLoader attach default pbr to box:
www.alltoall.net_babylonjs_3GUQKYZ7gx

Box with pbr:
www.alltoall.net_babylonjs_-1-_b7AhyaIeMm

Ok, I have understood now!

That’s because your material has the twoSidedLighting property set and not the default material.

3 Likes

Thanks for your reply~