Why is the material black in the scene when loading a .glb model?

Model materials loaded using BABYLON.SceneLoader.Append() render black instead of the color of the model itself.
Does anyone know why?

Because the GLB model is loaded with PBRMaterial, it needs lights.
Or set the material’s unlit to true.

1 Like

I set the hemispherical light but it didn’t work. Can you tell me how to set up the unlit for the material?

PBRMaterial | Babylon.js Documentation (babylonjs.com)


You can also use it scene.createDefaultEnvironment Create Default Ambient Light.
Scene | Babylon.js Documentation (babylonjs.com)

Problem solved. Thank you so much

1 Like