Light.js 492 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. * @author alteredq / http://alteredqualia.com/
  4. */
  5. THREE.Light = function ( color ) {
  6. THREE.Object3D.call( this );
  7. this.color = new THREE.Color( color );
  8. };
  9. THREE.Light.prototype = Object.create( THREE.Object3D.prototype );
  10. THREE.Light.prototype.clone = function ( light ) {
  11. if ( light === undefined ) light = new THREE.Light();
  12. THREE.Object3D.prototype.clone.call( this, light );
  13. light.color.copy( this.color );
  14. return light;
  15. };