AmbientLight.js 395 B

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