How to use GLTF Loader in three.js? Texture and material displaying as black

后端 未结 1 635
情话喂你
情话喂你 2021-01-21 13:28

I\'m having issues loading a gltf. The model is able to load successfully but all the textures and materials (already embedded in the .gltf) are completely black. When I view it

相关标签:
1条回答
  • 2021-01-21 14:27

    This issue is essentially the same as How to use AmbientLight in combination with MeshStandardMaterial? — your model has a 100% metallic material, and pure metals do not reflect diffuse (ambient and hemisphere) lights.

    Ideally, always add an environment map to PBR models. Another solution is to add non-diffuse/direct lights, such as PointLight or DirectionalLight instances. If you are able to edit the model, reducing its metalness would also work.

    For more details, see https://github.com/mrdoob/three.js/issues/9228.

    0 讨论(0)
提交回复
热议问题