three
Version:
JavaScript 3D library
28 lines (14 loc) • 320 B
JavaScript
import LightingNode from './LightingNode.js';
class IrradianceNode extends LightingNode {
static get type() {
return 'IrradianceNode';
}
constructor( node ) {
super();
this.node = node;
}
setup( builder ) {
builder.context.irradiance.addAssign( this.node );
}
}
export default IrradianceNode;