C# Class StereoCameraManager

Updates two cameras to provide a stereo view.
Inheritance: MonoBehaviour
显示文件 Open project: ekumenlabs/Garkanoid

Public Properties

Property Type Description
FOV float
IPDInMM float
enableStereo bool
eyeOffsetInMM Vector3
farClippingPlaneInMM float
isPoseIndependentCamera bool
isShowingDebugButton bool
leftCamera GameObject
nearClippingPlaneInMM float
rightCamera GameObject
screenWidthInMM float

Public Methods

Method Description
OnGUI ( ) : void

Unity GUI callback.

Start ( ) : void

Use this for initialization.

Update ( ) : void

Update is called once per frame.

Private Methods

Method Description
SetupCameras ( bool enable ) : void

Setup the cameras for the left and right eye to display in stereo.

Method Details

OnGUI() public method

Unity GUI callback.
public OnGUI ( ) : void
return void

Start() public method

Use this for initialization.
public Start ( ) : void
return void

Update() public method

Update is called once per frame.
public Update ( ) : void
return void

Property Details

FOV public_oe property

public float FOV
return float

IPDInMM public_oe property

public float IPDInMM
return float

enableStereo public_oe property

public bool enableStereo
return bool

eyeOffsetInMM public_oe property

public Vector3 eyeOffsetInMM
return Vector3

farClippingPlaneInMM public_oe property

public float farClippingPlaneInMM
return float

isPoseIndependentCamera public_oe property

public bool isPoseIndependentCamera
return bool

isShowingDebugButton public_oe property

public bool isShowingDebugButton
return bool

leftCamera public_oe property

public GameObject leftCamera
return GameObject

nearClippingPlaneInMM public_oe property

public float nearClippingPlaneInMM
return float

rightCamera public_oe property

public GameObject rightCamera
return GameObject

screenWidthInMM public_oe property

public float screenWidthInMM
return float