AmbientLight.js 397 B

12345678910111213141516171819202122232425
  1. import { Light } from './Light';
  2. /**
  3. * @author mrdoob / http://mrdoob.com/
  4. */
  5. function AmbientLight( color, intensity ) {
  6. this.isAmbientLight = true;
  7. Light.call( this, color, intensity );
  8. this.type = 'AmbientLight';
  9. this.castShadow = undefined;
  10. };
  11. AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), {
  12. constructor: AmbientLight
  13. } );
  14. export { AmbientLight };
粤ICP备19079148号