Browse Source

SpotLightShadow: Add missing copy() method. (#21527)

Michael Herzog 4 years ago
parent
commit
9ce67faf79
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/lights/SpotLightShadow.js

+ 10 - 0
src/lights/SpotLightShadow.js

@@ -33,6 +33,16 @@ class SpotLightShadow extends LightShadow {
 
 
 	}
 	}
 
 
+	copy( source ) {
+
+		super.copy( source );
+
+		this.focus = source.focus;
+
+		return this;
+
+	}
+
 }
 }
 
 
 SpotLightShadow.prototype.isSpotLightShadow = true;
 SpotLightShadow.prototype.isSpotLightShadow = true;