Преглед изворни кода

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 ) {
 
-								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
-		 * @type {THREE.Vector4}
+		 * @type {THREE.Vector3}
 		 */
-		this.color = new THREE.Vector4();
+		this.color = new THREE.Vector3();
 
 		/**
 		 * Indices of the bones vertex is influenced by.