|
@@ -44,16 +44,14 @@ THREE.SpotLight = function ( color, intensity, distance, angle, exponent, decay
|
|
|
THREE.SpotLight.prototype = Object.create( THREE.Light.prototype );
|
|
|
THREE.SpotLight.prototype.constructor = THREE.SpotLight;
|
|
|
|
|
|
-THREE.SpotLight.prototype.clone = function () {
|
|
|
-
|
|
|
- var light = new this.constructor( this.color, this.intensity, this.distance, this.angle, this.exponent, this.decay );
|
|
|
- return light.copy( this );
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
THREE.SpotLight.prototype.copy = function ( source ) {
|
|
|
|
|
|
- THREE.Object3D.prototype.copy.call( this, source );
|
|
|
+ THREE.Light.prototype.copy.call( this, source );
|
|
|
+
|
|
|
+ this.intensity = source.intensity;
|
|
|
+ this.distance = source.distance;
|
|
|
+ this.angle = source.angle;
|
|
|
+ this.decay = source.decay;
|
|
|
|
|
|
this.target = source.target.clone();
|
|
|
|