Aze
1
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:
Default material:
2 Likes
Aze
3
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:
Box with pbr:
Ok, I have understood now!
That’s because your material has the twoSidedLighting
property set and not the default material.
3 Likes