UNPKG

three

Version:

JavaScript 3D library

21 lines (10 loc) 316 B
import { Light } from './Light.js'; function AmbientLight( color, intensity ) { Light.call( this, color, intensity ); this.type = 'AmbientLight'; } AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), { constructor: AmbientLight, isAmbientLight: true } ); export { AmbientLight };