AmbientLight.js 457 B

123456789101112131415161718192021222324
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.AmbientLight = function ( color ) {
  5. THREE.Light.call( this, color );
  6. this.type = 'AmbientLight';
  7. };
  8. THREE.AmbientLight.prototype = Object.create( THREE.Light.prototype );
  9. THREE.AmbientLight.prototype.constructor = THREE.AmbientLight;
  10. THREE.AmbientLight.prototype.clone = function () {
  11. var light = new THREE.AmbientLight();
  12. THREE.Light.prototype.clone.call( this, light );
  13. return light;
  14. };