未验证 提交 de530d6b 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18113 from WestLangley/dev_fbx_loader

FBXLoader: use new BufferAttribute.applyMatrix4() method
......@@ -1590,7 +1590,7 @@ THREE.FBXLoader = ( function () {
var positionAttribute = new THREE.Float32BufferAttribute( buffers.vertex, 3 );
preTransform.applyToBufferAttribute( positionAttribute );
positionAttribute.applyMatrix4( preTransform );
geo.setAttribute( 'position', positionAttribute );
......@@ -2118,7 +2118,7 @@ THREE.FBXLoader = ( function () {
var positionAttribute = new THREE.Float32BufferAttribute( morphBuffers.vertex, 3 );
positionAttribute.name = name || morphGeoNode.attrName;
preTransform.applyToBufferAttribute( positionAttribute );
positionAttribute.applyMatrix4( preTransform );
parentGeo.morphAttributes.position.push( positionAttribute );
......
......@@ -1638,7 +1638,7 @@ var FBXLoader = ( function () {
var positionAttribute = new Float32BufferAttribute( buffers.vertex, 3 );
preTransform.applyToBufferAttribute( positionAttribute );
positionAttribute.applyMatrix4( preTransform );
geo.setAttribute( 'position', positionAttribute );
......@@ -2166,7 +2166,7 @@ var FBXLoader = ( function () {
var positionAttribute = new Float32BufferAttribute( morphBuffers.vertex, 3 );
positionAttribute.name = name || morphGeoNode.attrName;
preTransform.applyToBufferAttribute( positionAttribute );
positionAttribute.applyMatrix4( preTransform );
parentGeo.morphAttributes.position.push( positionAttribute );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册