C# Class AnaglyphizerC, Unity3D-Anaglyph-izer

Inheritance: MonoBehaviour
Show file Open project: EsimpleStudios/Unity3D-Anaglyph-izer Class Usage Examples

Public Properties

Property Type Description
anaglyphMat Material
downEyeDistance KeyCode,
downFocalDistance KeyCode,
enableKeys bool
upEyeDistance KeyCode,
upFocalDistance KeyCode,
useProjectionMatrix bool

Public Methods

Method Description
LateUpdate ( ) : void
OnRenderImage ( RenderTexture source, RenderTexture destination ) : void
Start ( ) : void
Stop ( ) : void
UpdateView ( ) : void

Private Methods

Method Description
DrawQuad ( ) : void
PerspectiveOffCenter ( float left, float right, float bottom, float top, float near, float far ) : Matrix4x4
projectionMatrix ( bool isLeftEye ) : Matrix4x4

Method Details

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnRenderImage() public method

public OnRenderImage ( RenderTexture source, RenderTexture destination ) : void
source RenderTexture
destination RenderTexture
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UpdateView() public method

public UpdateView ( ) : void
return void

Property Details

anaglyphMat public property

public Material anaglyphMat
return Material

downEyeDistance public property

public KeyCode, downEyeDistance
return KeyCode,

downFocalDistance public property

public KeyCode, downFocalDistance
return KeyCode,

enableKeys public property

public bool enableKeys
return bool

upEyeDistance public property

public KeyCode, upEyeDistance
return KeyCode,

upFocalDistance public property

public KeyCode, upFocalDistance
return KeyCode,

useProjectionMatrix public property

public bool useProjectionMatrix
return bool