three
Version:
JavaScript 3D library
43 lines (29 loc) • 507 B
JavaScript
import Node from '../core/Node.js';
/**
* Base class for lighting nodes.
*
* @augments Node
*/
class LightingNode extends Node {
static get type() {
return 'LightingNode';
}
/**
* Constructs a new lighting node.
*/
constructor() {
super( 'vec3' );
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isLightingNode = true;
}
isCacheable( /*builder*/ ) {
return false;
}
}
export default LightingNode;