You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
365 B
25 lines
365 B
import LightingNode from './LightingNode.js';
|
|
import { addNodeClass } from '../core/Node.js';
|
|
|
|
class IrradianceNode extends LightingNode {
|
|
|
|
constructor( node ) {
|
|
|
|
super();
|
|
|
|
this.node = node;
|
|
|
|
}
|
|
|
|
setup( builder ) {
|
|
|
|
builder.context.irradiance.addAssign( this.node );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default IrradianceNode;
|
|
|
|
addNodeClass( 'IrradianceNode', IrradianceNode );
|