AmbientLight.js 316 B

1234567891011121314151617181920
  1. import { Light } from './Light.js';
  2. function AmbientLight( color, intensity ) {
  3. Light.call( this, color, intensity );
  4. this.type = 'AmbientLight';
  5. }
  6. AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), {
  7. constructor: AmbientLight,
  8. isAmbientLight: true
  9. } );
  10. export { AmbientLight };