12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- import { Matrix } from "../../Maths/math.vector";
- /**
- * This represents all the required metrics to create a VR camera.
- * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#device-orientation-camera
- */
- export declare class VRCameraMetrics {
- /**
- * Define the horizontal resolution off the screen.
- */
- hResolution: number;
- /**
- * Define the vertical resolution off the screen.
- */
- vResolution: number;
- /**
- * Define the horizontal screen size.
- */
- hScreenSize: number;
- /**
- * Define the vertical screen size.
- */
- vScreenSize: number;
- /**
- * Define the vertical screen center position.
- */
- vScreenCenter: number;
- /**
- * Define the distance of the eyes to the screen.
- */
- eyeToScreenDistance: number;
- /**
- * Define the distance between both lenses
- */
- lensSeparationDistance: number;
- /**
- * Define the distance between both viewer's eyes.
- */
- interpupillaryDistance: number;
- /**
- * Define the distortion factor of the VR postprocess.
- * Please, touch with care.
- */
- distortionK: number[];
- /**
- * Define the chromatic aberration correction factors for the VR post process.
- */
- chromaAbCorrection: number[];
- /**
- * Define the scale factor of the post process.
- * The smaller the better but the slower.
- */
- postProcessScaleFactor: number;
- /**
- * Define an offset for the lens center.
- */
- lensCenterOffset: number;
- /**
- * Define if the current vr camera should compensate the distortion of the lens or not.
- */
- compensateDistortion: boolean;
- /**
- * Defines if multiview should be enabled when rendering (Default: false)
- */
- multiviewEnabled: boolean;
- /**
- * Gets the rendering aspect ratio based on the provided resolutions.
- */
- get aspectRatio(): number;
- /**
- * Gets the aspect ratio based on the FOV, scale factors, and real screen sizes.
- */
- get aspectRatioFov(): number;
- /**
- * @internal
- */
- get leftHMatrix(): Matrix;
- /**
- * @internal
- */
- get rightHMatrix(): Matrix;
- /**
- * @internal
- */
- get leftPreViewMatrix(): Matrix;
- /**
- * @internal
- */
- get rightPreViewMatrix(): Matrix;
- /**
- * Get the default VRMetrics based on the most generic setup.
- * @returns the default vr metrics
- */
- static GetDefault(): VRCameraMetrics;
- }
|