Buckets:

imerfanrajabee's picture
download
raw
733 Bytes
import LightingNode from './LightingNode.js';
/**
* A generic class that can be used by nodes which contribute
* irradiance to the scene. E.g. a light map node can be used
* as input for this module. Used in {@link NodeMaterial}.
*
* @augments LightingNode
*/
class IrradianceNode extends LightingNode {
static get type() {
return 'IrradianceNode';
}
/**
* Constructs a new irradiance node.
*
* @param {Node<vec3>} node - A node contributing irradiance.
*/
constructor( node ) {
super();
/**
* A node contributing irradiance.
*
* @type {Node<vec3>}
*/
this.node = node;
}
setup( builder ) {
builder.context.irradiance.addAssign( this.node );
}
}
export default IrradianceNode;

Xet Storage Details

Size:
733 Bytes
·
Xet hash:
ffc3fc7dddd09ec16ea9e33e18762068ed351bc916eabbc2a7da009a716c96b0

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