Light.js 509 B

123456789101112131415161718192021222324252627
  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.type = 'Light';
  8. this.color = new THREE.Color( color );
  9. };
  10. THREE.Light.prototype = Object.create( THREE.Object3D.prototype );
  11. THREE.Light.prototype.constructor = THREE.Light;
  12. THREE.Light.prototype.copy = function ( source ) {
  13. THREE.Object3D.prototype.copy.call( this, source );
  14. this.color.copy( source.color );
  15. return this;
  16. };
粤ICP备19079148号