Browse Source

AmbientLight .clone()

Mr.doob 12 years ago
parent
commit
374aa57809
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/lights/AmbientLight.js

+ 10 - 0
src/lights/AmbientLight.js

@@ -9,3 +9,13 @@ THREE.AmbientLight = function ( hex ) {
 };
 
 THREE.AmbientLight.prototype = Object.create( THREE.Light.prototype );
+
+THREE.AmbientLight.prototype.clone = function () {
+
+	var light = new THREE.AmbientLight();
+
+	THREE.Light.prototype.clone.call( this, light );
+
+	return light;
+
+};