AmbientLight.js 364 B

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