UNPKG

polygonjs-engine

Version:

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

25 lines (24 loc) 710 B
import {TypedPostProcessNode} from "./_Base"; import {NodeParamsConfig} from "../utils/params/ParamsConfig"; class SequencePostParamsConfig extends NodeParamsConfig { } const ParamsConfig2 = new SequencePostParamsConfig(); export class SequencePostNode extends TypedPostProcessNode { constructor() { super(...arguments); this.params_config = ParamsConfig2; } static type() { return "sequence"; } initializeNode() { super.initializeNode(); this.io.inputs.setCount(0, 4); } setup_composer(context) { this._add_pass_from_input(0, context); this._add_pass_from_input(1, context); this._add_pass_from_input(2, context); this._add_pass_from_input(3, context); } }