浏览代码

FBXLoader2: We only support 3 channel colors.

Mr.doob 8 年之前
父节点
当前提交
c8fc630bbd
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/loaders/FBXLoader2.js

+ 3 - 3
examples/js/loaders/FBXLoader2.js

@@ -748,7 +748,7 @@
 							}
 							}
 							if ( 'LayerElementColor' in geometryNode.subNodes ) {
 							if ( 'LayerElementColor' in geometryNode.subNodes ) {
 
 
-								geo.addAttribute( 'color', new THREE.BufferAttribute( new Float32Array( bufferInfo.colorsBuffer ), 4 ) );
+								geo.addAttribute( 'color', new THREE.BufferAttribute( new Float32Array( bufferInfo.colorsBuffer ), 3 ) );
 
 
 							}
 							}
 
 
@@ -3137,9 +3137,9 @@
 
 
 		/**
 		/**
 		 * Color of the vertex
 		 * Color of the vertex
-		 * @type {THREE.Vector4}
+		 * @type {THREE.Vector3}
 		 */
 		 */
-		this.color = new THREE.Vector4();
+		this.color = new THREE.Vector3();
 
 
 		/**
 		/**
 		 * Indices of the bones vertex is influenced by.
 		 * Indices of the bones vertex is influenced by.