Browse Source

AmbientLight .clone()

Mr.doob 12 năm trước cách đây
mục cha
commit
374aa57809
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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;
+
+};