public final class VRSettings
- Object
- VRSettings
Configuration for a
VRView. Fluent builder.Constructors
public VRSettings() |
Methods
public VRSettings ipdMeters(float ipd) | The interpupillary distance - the world-space separation between the two eyes - in meters. |
public VRSettings fovYDegrees(float fov) | The vertical field of view per eye in degrees. |
public VRSettings nearFar(float near, float far) | The near and far clip plane distances. |
public VRSettings stereo(boolean stereo) | Whether the view renders side-by-side stereo (true, the default) or a single centered viewpoint. |
public float getIpdMeters() | The interpupillary distance in meters. |
public float getFovYDegrees() | The vertical field of view per eye in degrees. |
public float getNear() | The near clip plane distance. |
public float getFar() | The far clip plane distance. |
public boolean isStereo() | True when the view renders side-by-side stereo. |
Inherited methods
Constructor details
VRSettings
public VRSettings()Method details
ipdMeters
public VRSettings ipdMeters(float ipd)The interpupillary distance - the world-space separation between the
two eyes - in meters. Default
0.064 (the human average).fovYDegrees
public VRSettings fovYDegrees(float fov)The vertical field of view per eye in degrees. Default
90.nearFar
public VRSettings nearFar(float near, float far)The near and far clip plane distances. Defaults
0.1 and 100.stereo
public VRSettings stereo(boolean stereo)Whether the view renders side-by-side stereo (true, the default) or a
single centered viewpoint.
getIpdMeters
public float getIpdMeters()The interpupillary distance in meters.
getFovYDegrees
public float getFovYDegrees()The vertical field of view per eye in degrees.
getNear
public float getNear()The near clip plane distance.
getFar
public float getFar()The far clip plane distance.
isStereo
public boolean isStereo()True when the view renders side-by-side stereo.