API

Class VRCameraMetrics

This represents all the required metrics to create a VR camera.

Index
chromaAbCorrection: number[]

Define the chromatic aberration correction factors for the VR post process.

compensateDistortion: boolean = true

Define if the current vr camera should compensate the distortion of the lens or not.

distortionK: number[]

Define the distortion factor of the VR postprocess. Please, touch with care.

eyeToScreenDistance: number

Define the distance of the eyes to the screen.

hResolution: number

Define the horizontal resolution off the screen.

hScreenSize: number

Define the horizontal screen size.

interpupillaryDistance: number

Define the distance between both viewer's eyes.

lensCenterOffset: number

Define an offset for the lens center.

lensSeparationDistance: number

Define the distance between both lenses

multiviewEnabled: boolean = false

Defines if multiview should be enabled when rendering (Default: false)

postProcessScaleFactor: number

Define the scale factor of the post process. The smaller the better but the slower.

vResolution: number

Define the vertical resolution off the screen.

vScreenCenter: number

Define the vertical screen center position.

vScreenSize: number

Define the vertical screen size.