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

Merge pull request #18082 from WestLangley/dev_fbx_loader

FBXLoader: correctly apply normal matrix to attribute
......@@ -1616,7 +1616,8 @@ THREE.FBXLoader = ( function () {
var normalAttribute = new THREE.Float32BufferAttribute( buffers.normal, 3 );
var normalMatrix = new THREE.Matrix3().getNormalMatrix( preTransform );
normalMatrix.applyToBufferAttribute( normalAttribute );
normalAttribute.applyNormalMatrix( normalMatrix );
geo.setAttribute( 'normal', normalAttribute );
......
......@@ -1664,7 +1664,8 @@ var FBXLoader = ( function () {
var normalAttribute = new Float32BufferAttribute( buffers.normal, 3 );
var normalMatrix = new Matrix3().getNormalMatrix( preTransform );
normalMatrix.applyToBufferAttribute( normalAttribute );
normalAttribute.applyNormalMatrix( normalMatrix );
geo.setAttribute( 'normal', normalAttribute );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册