Преглед на файлове

switched to THREE.Uint16BufferAttri for skinIndex

Lewy Blue преди 7 години
родител
ревизия
3cff2e4cff
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/js/loaders/FBXLoader.js

+ 1 - 1
examples/js/loaders/FBXLoader.js

@@ -1108,7 +1108,7 @@
 
 
 		if ( skeleton ) {
 		if ( skeleton ) {
 
 
-			geo.addAttribute( 'skinIndex', new THREE.Float32BufferAttribute( weightsIndicesBuffer, 4 ) );
+			geo.addAttribute( 'skinIndex', new THREE.Uint16BufferAttribute( weightsIndicesBuffer, 4 ) );
 
 
 			geo.addAttribute( 'skinWeight', new THREE.Float32BufferAttribute( vertexWeightsBuffer, 4 ) );
 			geo.addAttribute( 'skinWeight', new THREE.Float32BufferAttribute( vertexWeightsBuffer, 4 ) );