Class VRCameraMetrics
Constructors
constructor
-
Returns VRCameraMetrics
Properties
chroma Ab Correction
Define the chromatic aberration correction factors for the VR post process.
compensate Distortion
Define if the current vr camera should compensate the distortion of the lens or not.
distortion K
Define the distortion factor of the VR postprocess. Please, touch with care.
eye To Screen Distance
Define the distance of the eyes to the screen.
h Resolution
Define the horizontal resolution off the screen.
h Screen Size
Define the horizontal screen size.
interpupillary Distance
Define the distance between both viewer's eyes.
lens Center Offset
Define an offset for the lens center.
lens Separation Distance
Define the distance between both lenses
multiview Enabled
Defines if multiview should be enabled when rendering (Default: false)
post Process Scale Factor
Define the scale factor of the post process. The smaller the better but the slower.
v Resolution
Define the vertical resolution off the screen.
v Screen Center
Define the vertical screen center position.
v Screen Size
Define the vertical screen size.
Accessors
aspect Ratio
-
get aspectRatio(): number
Gets the rendering aspect ratio based on the provided resolutions.
Returns number
aspect Ratio Fov
-
get aspectRatioFov(): number
Gets the aspect ratio based on the FOV, scale factors, and real screen sizes.
Returns number
Methods
StaticGet Default
-
Get the default VRMetrics based on the most generic setup.
Returns VRCameraMetrics
the default vr metrics
This represents all the required metrics to create a VR camera.
See
https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#device-orientation-camera