UNPKG

@polygonjs/polygonjs

Version:

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

26 lines (25 loc) 829 B
"use strict"; import { TypedSopNode } from "./_Base"; import { NullSopOperation } from "../../operations/sop/Null"; import { NodeParamsConfig } from "../utils/params/ParamsConfig"; class NullSopParamsConfig extends NodeParamsConfig { } const ParamsConfig = new NullSopParamsConfig(); export class NullSopNode extends TypedSopNode { constructor() { super(...arguments); this.paramsConfig = ParamsConfig; } static type() { return "null"; } initializeNode() { this.io.inputs.setCount(0, 1); this.io.inputs.initInputsClonedState(NullSopOperation.INPUT_CLONED_STATE); } cook(input_contents) { this._operation = this._operation || new NullSopOperation(this.scene(), this.states, this); const core_group = this._operation.cook(input_contents, this.pv); this.setCoreGroup(core_group); } }