瀏覽代碼

Merge pull request #13633 from looeee/FBXLoader_follow_gltf_attribute_spec

FBXLoader: use Uint16BufferAttribute  for skinIndex
Mr.doob 7 年之前
父節點
當前提交
4431a8fe35
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/FBXLoader.js

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

@@ -1108,7 +1108,7 @@
 
 		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 ) );