Explorar o código

[gltf] Fix quadraticAttenuation vs fallOffExponent in spotlight.

Don McCurdy %!s(int64=8) %!d(string=hai) anos
pai
achega
1cb54e8eb4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 ) {
 				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 ) {
 				if ( light.fallOffExponent !== undefined ) {
 
 
-					lightNode.decay = light.fallOffExponent;
+					console.warn( 'GLTF2Loader: light.fallOffExponent not currently supported.' );
 
 
 				}
 				}
 
 

粤ICP备19079148号