From 89041aebf5c3b9faec78d5641e78d04913907d69 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sat, 20 Jul 2013 02:16:04 +0200 Subject: [PATCH] BabylonLoader: Inverting z for lights too. --- examples/js/loaders/BabylonLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/js/loaders/BabylonLoader.js b/examples/js/loaders/BabylonLoader.js index a32acaeed8..d4a578176c 100644 --- a/examples/js/loaders/BabylonLoader.js +++ b/examples/js/loaders/BabylonLoader.js @@ -99,7 +99,7 @@ THREE.BabylonLoader.prototype = { } 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 ); if ( data.intensity ) light.intensity = data.intensity; -- GitLab