Browse Source

[gltf] Fix quadraticAttenuation vs fallOffExponent in spotlight.

Don McCurdy 8 years ago
parent
commit
1cb54e8eb4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/loaders/GLTF2Loader.js

+ 2 - 2
examples/js/loaders/GLTF2Loader.js

@@ -350,7 +350,7 @@ THREE.GLTF2Loader = ( function () {
 
 				if ( light.quadraticAttenuation !== undefined ) {
 
-					console.warn( 'GLTF2Loader: light.quadraticAttenuation not currently supported.' );
+					lightNode.decay = light.quadraticAttenuation;
 
 				}
 
@@ -362,7 +362,7 @@ THREE.GLTF2Loader = ( function () {
 
 				if ( light.fallOffExponent !== undefined ) {
 
-					lightNode.decay = light.fallOffExponent;
+					console.warn( 'GLTF2Loader: light.fallOffExponent not currently supported.' );
 
 				}