Buckets:

imerfanrajabee's picture
download
raw
766 Bytes
import LightingNode from './LightingNode.js';
/**
* A generic class that can be used by nodes which contribute
* ambient occlusion to the scene. E.g. an ambient occlusion map
* node can be used as input for this module. Used in {@link NodeMaterial}.
*
* @augments LightingNode
*/
class AONode extends LightingNode {
static get type() {
return 'AONode';
}
/**
* Constructs a new AO node.
*
* @param {?Node<float>} [aoNode=null] - The ambient occlusion node.
*/
constructor( aoNode = null ) {
super();
/**
* The ambient occlusion node.
*
* @type {?Node<float>}
* @default null
*/
this.aoNode = aoNode;
}
setup( builder ) {
builder.context.ambientOcclusion.mulAssign( this.aoNode );
}
}
export default AONode;

Xet Storage Details

Size:
766 Bytes
·
Xet hash:
31d2ded44ccd70ceb126a044fce4200d7d31851b7850f048b2f8da50a28fcccc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.