UNPKG

@polygonjs/polygonjs

Version:

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

20 lines (19 loc) 651 B
"use strict"; import { ParamConfig } from "../../../utils/params/ParamsConfig"; export function CameraWebXRParamConfig(Base) { return class Mixin extends Base { constructor() { super(...arguments); /** @param allows this camera to be used in AR (augmented reality) or VR (virtual reality) */ this.useWebXR = ParamConfig.BOOLEAN(0); /** @param activates AR (augmented reality) */ this.useAR = ParamConfig.BOOLEAN(1, { visibleIf: { useWebXR: 1 } }); /** @param activates VR (virtual reality) */ this.useVR = ParamConfig.BOOLEAN(1, { visibleIf: { useWebXR: 1 } }); } }; }