Explorar o código

AmbientLight .clone()

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
374aa57809
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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;
+
+};