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

AONode.js

import LightingNode from './LightingNode.js';

class AONode extends LightingNode {

	static get type() {

		return 'AONode';

	}

	constructor( aoNode = null ) {

		super();

		this.aoNode = aoNode;

	}

	setup( builder ) {

		builder.context.ambientOcclusion.mulAssign( this.aoNode );

	}

}

export default AONode;