Public Member Functions | |
void | Initialize () |
Creates and configures the stereo rendertextures More... | |
void | ValidateNativeTexturePointers () |
Determines whether the left/right texture handles are still valid, and resets them if needed More... | |
void | GetNativeTexturePointers (out IntPtr leftTexHandle, out IntPtr rightTexHandle) |
Acquires the native output textures upon startup or invalidaiton. More... | |
void | SubmitPreviewTextures (GlassesMirrorMode glassesMirrorMode) |
Copies frame data from the HDR input textures to the onscreen preview textures. More... | |
Public Attributes | |
RenderTexture | LeftTexture_GLS |
The left eye rendertexture More... | |
RenderTexture | RightTexture_GLS |
The right eye rendertexture More... | |
RenderTexture | MonoPreviewTex |
The rendertexture used to display onscreen previews for the left or right eye camera. More... | |
RenderTexture | StereoPreviewTex |
The rendertexture used to display onscreen previews for the left and right eye cameras in stereo. More... | |
Properties | |
IntPtr | LeftTexHandle [get, set] |
The native pointer to the left eye rendertexture More... | |
IntPtr | RightTexHandle [get, set] |
The native pointer to the right eye rendertexture More... | |
Private Member Functions | |
void | CopyTexture (RenderTexture sourceTex, RenderTexture destinationTex, int xOffset=0) |
Definition at line 25 of file SplitStereoTextures.cs.
|
private |
Definition at line 235 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoTextures.SubmitPreviewTextures().
void TiltFive.SplitStereoTextures.GetNativeTexturePointers | ( | out IntPtr | leftTexHandle, |
out IntPtr | rightTexHandle | ||
) |
Acquires the native output textures upon startup or invalidaiton.
This should be executed after all rendering is complete, including UI and post processing.
Definition at line 130 of file SplitStereoTextures.cs.
References TiltFive.SplitStereoTextures.LeftTexHandle, TiltFive.SplitStereoTextures.LeftTexture_GLS, TiltFive.SplitStereoTextures.RightTexHandle, and TiltFive.SplitStereoTextures.RightTexture_GLS.
Referenced by TiltFive.SplitStereoCamera.PresentStereoImages().
void TiltFive.SplitStereoTextures.Initialize | ( | ) |
Creates and configures the stereo rendertextures
renderFormat_UGLS |
Definition at line 71 of file SplitStereoTextures.cs.
References TiltFive.DisplaySettings.depthBuffer, TiltFive.DisplaySettings.height, TiltFive.SplitStereoTextures.LeftTexture_GLS, TiltFive.SplitStereoTextures.MonoPreviewTex, TiltFive.DisplaySettings.monoWidth, TiltFive.DisplaySettings.nativeTextureFormat, TiltFive.SplitStereoTextures.RightTexture_GLS, TiltFive.SplitStereoTextures.StereoPreviewTex, and TiltFive.DisplaySettings.stereoWidth.
Referenced by TiltFive.SplitStereoCamera.ConfigureEyeCameras().
void TiltFive.SplitStereoTextures.SubmitPreviewTextures | ( | GlassesMirrorMode | glassesMirrorMode | ) |
Copies frame data from the HDR input textures to the onscreen preview textures.
glassesMirrorMode |
Definition at line 147 of file SplitStereoTextures.cs.
References TiltFive.SplitStereoTextures.CopyTexture(), TiltFive.SplitStereoTextures.LeftTexture_GLS, TiltFive.SplitStereoTextures.MonoPreviewTex, TiltFive.SplitStereoTextures.RightTexture_GLS, and TiltFive.SplitStereoTextures.StereoPreviewTex.
Referenced by TiltFive.SplitStereoCamera.OnRenderImage().
void TiltFive.SplitStereoTextures.ValidateNativeTexturePointers | ( | ) |
Determines whether the left/right texture handles are still valid, and resets them if needed
This should be executed in OnPreRender(), otherwise IsCreated() always returns true
Definition at line 104 of file SplitStereoTextures.cs.
References TiltFive.SplitStereoTextures.LeftTexHandle, TiltFive.SplitStereoTextures.LeftTexture_GLS, TiltFive.SplitStereoTextures.RightTexHandle, and TiltFive.SplitStereoTextures.RightTexture_GLS.
Referenced by TiltFive.SplitStereoCamera.OnPreRender().
RenderTexture TiltFive.SplitStereoTextures.LeftTexture_GLS |
The left eye rendertexture
This is used to send frame data to the glasses.
Definition at line 33 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoCamera.ConfigureEyeCameras(), TiltFive.SplitStereoTextures.GetNativeTexturePointers(), TiltFive.SplitStereoTextures.Initialize(), TiltFive.SplitStereoCamera.PresentStereoImages(), TiltFive.SplitStereoTextures.SubmitPreviewTextures(), and TiltFive.SplitStereoTextures.ValidateNativeTexturePointers().
RenderTexture TiltFive.SplitStereoTextures.MonoPreviewTex |
The rendertexture used to display onscreen previews for the left or right eye camera.
Definition at line 56 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoCamera.ConfigureEyeCameras(), TiltFive.SplitStereoTextures.Initialize(), TiltFive.SplitStereoCamera.OnRenderImage(), and TiltFive.SplitStereoTextures.SubmitPreviewTextures().
RenderTexture TiltFive.SplitStereoTextures.RightTexture_GLS |
The right eye rendertexture
This is used to send frame data to the glasses.
Definition at line 38 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoCamera.ConfigureEyeCameras(), TiltFive.SplitStereoTextures.GetNativeTexturePointers(), TiltFive.SplitStereoTextures.Initialize(), TiltFive.SplitStereoCamera.PresentStereoImages(), TiltFive.SplitStereoTextures.SubmitPreviewTextures(), and TiltFive.SplitStereoTextures.ValidateNativeTexturePointers().
RenderTexture TiltFive.SplitStereoTextures.StereoPreviewTex |
The rendertexture used to display onscreen previews for the left and right eye cameras in stereo.
Definition at line 60 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoCamera.ConfigureEyeCameras(), TiltFive.SplitStereoTextures.Initialize(), TiltFive.SplitStereoCamera.OnRenderImage(), and TiltFive.SplitStereoTextures.SubmitPreviewTextures().
|
getsetprivate |
The native pointer to the left eye rendertexture
This is used to pass the left eye texture to unmanaged code
Definition at line 45 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoTextures.GetNativeTexturePointers(), and TiltFive.SplitStereoTextures.ValidateNativeTexturePointers().
|
getsetprivate |
The native pointer to the right eye rendertexture
This is used to pass the left eye texture to unmanaged code
Definition at line 50 of file SplitStereoTextures.cs.
Referenced by TiltFive.SplitStereoTextures.GetNativeTexturePointers(), and TiltFive.SplitStereoTextures.ValidateNativeTexturePointers().