提交 a9790116 编写于 作者: D Don McCurdy

Set .vertexColors on material if present in attributes.

上级 40fcb104
......@@ -1750,6 +1750,12 @@ THREE.GLTF2Loader = ( function () {
}
if ( geometry.attributes.color !== undefined ) {
material.vertexColors = THREE.VertexColors;
}
if ( primitive.indices !== undefined ) {
geometry.setIndex( dependencies.accessors[ primitive.indices ] );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册