Browse Source

Copy exponent value for Spotlight

Somehow this became lost in the refactor
Daniel Hritzkiv 10 years ago
parent
commit
9a9d73d401
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/lights/SpotLight.js

+ 4 - 3
src/lights/SpotLight.js

@@ -45,14 +45,15 @@ THREE.SpotLight.prototype = Object.create( THREE.Light.prototype );
 THREE.SpotLight.prototype.constructor = THREE.SpotLight;
 THREE.SpotLight.prototype.constructor = THREE.SpotLight;
 
 
 THREE.SpotLight.prototype.copy = function ( source ) {
 THREE.SpotLight.prototype.copy = function ( source ) {
-	
+
 	THREE.Light.prototype.copy.call( this, source );
 	THREE.Light.prototype.copy.call( this, source );
-	
+
 	this.intensity = source.intensity;
 	this.intensity = source.intensity;
 	this.distance = source.distance;
 	this.distance = source.distance;
 	this.angle = source.angle;
 	this.angle = source.angle;
+	this.exponent = source.exponent;
 	this.decay = source.decay;
 	this.decay = source.decay;
-	
+
 	this.target = source.target.clone();
 	this.target = source.target.clone();
 
 
 	this.castShadow = source.castShadow;
 	this.castShadow = source.castShadow;