提交 89041aeb 编写于 作者: M Mr.doob

BabylonLoader: Inverting z for lights too.

上级 568bef63
...@@ -99,7 +99,7 @@ THREE.BabylonLoader.prototype = { ...@@ -99,7 +99,7 @@ THREE.BabylonLoader.prototype = {
} }
light.name = data.name; light.name = data.name;
light.position.fromArray( data.data ); light.position.set( data.data[ 0 ], data.data[ 1 ], - data.data[ 2 ] );
light.color.fromArray( data.diffuse ); light.color.fromArray( data.diffuse );
if ( data.intensity ) light.intensity = data.intensity; if ( data.intensity ) light.intensity = data.intensity;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册