Browse Source

SpotLight: added shadowCamera parameters to clone() method

WestLangley 11 years ago
parent
commit
12bf304af1
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/lights/SpotLight.js

+ 14 - 0
src/lights/SpotLight.js

@@ -58,6 +58,20 @@ THREE.SpotLight.prototype.clone = function () {
 	light.castShadow = this.castShadow;
 	light.onlyShadow = this.onlyShadow;
 
+	//
+
+	light.shadowCameraNear = this.shadowCameraNear;
+	light.shadowCameraFar = this.shadowCameraFar;
+	light.shadowCameraFov = this.shadowCameraFov;
+
+	light.shadowCameraVisible = this.shadowCameraVisible;
+
+	light.shadowBias = this.shadowBias;
+	light.shadowDarkness = this.shadowDarkness;
+
+	light.shadowMapWidth = this.shadowMapWidth;
+	light.shadowMapHeight = this.shadowMapHeight;
+
 	return light;
 
 };