Class VRCameraMetrics
Hierarchy
- VRCameraMetrics
Index
Properties
Accessors
Methods
Properties
chroma AbCorrectionSearch playground for chromaAbCorrection
Define the chromatic aberration correction factors for the VR post process.
compensate DistortionSearch playground for compensateDistortion
Define if the current vr camera should compensate the distortion of the lense or not.
distortionKSearch playground for distortionK
Define the distortion factor of the VR postprocess. Please, touch with care.
eye ToScreen DistanceSearch playground for eyeToScreenDistance
Define the distance of the eyes to the screen.
h ResolutionSearch playground for hResolution
Define the horizontal resolution off the screen.
h Screen SizeSearch playground for hScreenSize
Define the horizontal screen size.
interpupillary DistanceSearch playground for interpupillaryDistance
Define the distance between both viewer's eyes.
lens Center OffsetSearch playground for lensCenterOffset
Define an offset for the lens center.
lens Separation DistanceSearch playground for lensSeparationDistance
Define the distance between both lenses
multiview EnabledSearch playground for multiviewEnabled
Defines if multiview should be enabled when rendering (Default: false)
post Process Scale FactorSearch playground for postProcessScaleFactor
Define the scale factor of the post process. The smaller the better but the slower.
v ResolutionSearch playground for vResolution
Define the vertical resolution off the screen.
v Screen CenterSearch playground for vScreenCenter
Define the vertical screen center position.
v Screen SizeSearch playground for vScreenSize
Define the vertical screen size.
Accessors
aspect Ratio
-
Gets the rendering aspect ratio based on the provided resolutions.
Returns number
aspect Ratio Fov
-
Gets the aspect ratio based on the FOV, scale factors, and real screen sizes.
Returns number
Methods
Static Get DefaultSearch playground for GetDefault
-
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.
https://doc.babylonjs.com/babylon101/cameras#device-orientation-camera