UNPKG

three

Version:

JavaScript 3D library

37 lines (26 loc) 455 B
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; } } export default LightingNode;