UNPKG

@polygonjs/polygonjs

Version:

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

34 lines (33 loc) 933 B
"use strict"; import { NetworkNodeType } from "../../../../poly/NodeContext"; import { ParamConfig } from "../../../utils/params/ParamsConfig"; export function CameraPostProcessParamConfig(Base) { return class Mixin extends Base { constructor() { super(...arguments); this.doPostProcess = ParamConfig.BOOLEAN(0); this.postProcessNode = ParamConfig.NODE_PATH("", { visibleIf: { doPostProcess: 1 }, nodeSelection: { types: [NetworkNodeType.POST] }, // cook: false, // ...POST_PROCESS_PARAM_OPTIONS, dependentOnFoundNode: false }); } // prepend_render_pass = ParamConfig.BOOLEAN(1, { // visibleIf: { // doPostProcess: 1, // }, // }); // use_render_target = ParamConfig.BOOLEAN(0, { // visibleIf: { // doPostProcess: 1, // }, // ...POST_PROCESS_PARAM_OPTIONS, // }); }; }