@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
18 lines (17 loc) • 529 B
JavaScript
;
import { ParamConfig } from "../../engine/nodes/utils/params/ParamsConfig";
export const CUBE_CAMERA_DEFAULT = {
resolution: 1024,
resolutionRange: [8, 2048]
};
export function CubeCameraParamConfigMixin(Base) {
return class Mixin extends Base {
constructor() {
super(...arguments);
/** @param resolution */
this.resolution = ParamConfig.FLOAT(CUBE_CAMERA_DEFAULT.resolution, { range: CUBE_CAMERA_DEFAULT.resolutionRange });
}
};
}
export const registerCubeCamera = (poly) => {
};