polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
26 lines (21 loc) • 796 B
text/typescript
import {TypedPostProcessNode, TypedPostNodeContext} from './_Base';
import {Pass} from '../../../modules/three/examples/jsm/postprocessing/Pass';
import {NodeParamsConfig} from '../utils/params/ParamsConfig';
class SequencePostParamsConfig extends NodeParamsConfig {}
const ParamsConfig = new SequencePostParamsConfig();
export class SequencePostNode extends TypedPostProcessNode<Pass, SequencePostParamsConfig> {
params_config = ParamsConfig;
static type() {
return 'sequence';
}
initializeNode() {
super.initializeNode();
this.io.inputs.setCount(0, 4);
}
setup_composer(context: TypedPostNodeContext): void {
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);
}
}