提交 6e7f14cc 编写于 作者: D Don McCurdy

[gltf] Use flat shading if normals are not included.

上级 bf0532d8
......@@ -2196,6 +2196,12 @@ THREE.GLTF2Loader = ( function () {
}
if ( geometry.attributes.normal === undefined ) {
material.shading = THREE.FlatShading;
}
meshNode = new THREE.Mesh( geometry, material );
meshNode.castShadow = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册