Accueil / npm / three@0.171.0 / src / nodes / lighting / IrradianceNode.js

IrradianceNode.js

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;