UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

21 lines (20 loc) 626 B
import {TypedJsNode} from "./_Base"; import {NodeParamsConfig} from "../utils/params/ParamsConfig"; class GlobalsJsParamsConfig extends NodeParamsConfig { } const ParamsConfig2 = new GlobalsJsParamsConfig(); export class GlobalsJsNode extends TypedJsNode { constructor() { super(...arguments); this.params_config = ParamsConfig2; } static type() { return "globals"; } create_params() { this.function_node?.assembler_controller.add_globals_outputs(this); } set_lines(lines_controller) { this.function_node?.assembler_controller?.assembler.set_node_lines_globals(this, lines_controller); } }