提交 0be1a21f 编写于 作者: M Mr.doob

FBXLoader: Clean up.

上级 87fe6cc8
......@@ -1613,10 +1613,9 @@ THREE.FBXLoader = ( function () {
if ( buffers.normal.length > 0 ) {
var normalAttribute = new THREE.Float32BufferAttribute( buffers.normal, 3 );
var normalMatrix = new THREE.Matrix3().getNormalMatrix( preTransform );
var normalAttribute = new THREE.Float32BufferAttribute( buffers.normal, 3 );
normalAttribute.applyNormalMatrix( normalMatrix );
geo.setAttribute( 'normal', normalAttribute );
......
......@@ -1661,10 +1661,9 @@ var FBXLoader = ( function () {
if ( buffers.normal.length > 0 ) {
var normalAttribute = new Float32BufferAttribute( buffers.normal, 3 );
var normalMatrix = new Matrix3().getNormalMatrix( preTransform );
var normalAttribute = new Float32BufferAttribute( buffers.normal, 3 );
normalAttribute.applyNormalMatrix( normalMatrix );
geo.setAttribute( 'normal', normalAttribute );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册