This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.24 Reference Guide

OVRRTOverlayConnector Class Reference

Usage: attach this script under your camera object, and point ovrOverlayObj to your overlay owner object.
MonoBehaviour inherited by OVRRTOverlayConnector.

Data Fields

int
OVROverlay texture required alpha = 0 border for avoiding artifacts
GameObject
Destination OVROverlay target object

Private Data Fields

const int
Triple buffer the render target
int
IntPtr []
RenderTexture []
RenderTexture
srcRT ( )
Camera

Public Member Functions

void
Reconstruct render texture chain if ownerCamera's targetTexture was changed

Private Member Functions

void
Triple buffer the textures applying to overlay
void
Start ( )
void
Copy camera's render target to triple buffered texture array and send it to OVROverlay object

Detailed Description

Note: 1) your camera should use renderTexture 2) your need make sure your overlay camera was rendered before you main camera (eg. using camera depth), so the renderTexture will be available before being used.
This is a helper class to setup renderTexture to OVROverlay object It did a few things 1) Clear the renderTarget's border to alpha = 0 for avoiding artifacts on mobile 2) Triple buffer the render results before sending to the overlay, which is a requirement for time warping render target

Field Documentation

int OVRRTOverlayConnector.alphaBorderSizePixels ( )
OVROverlay texture required alpha = 0 border for avoiding artifacts
GameObject OVRRTOverlayConnector.ovrOverlayObj ( )
Destination OVROverlay target object

Object Data Documentation

const int OVRRTOverlayConnector.overlayRTChainSize ( )
Triple buffer the render target
int OVRRTOverlayConnector.overlayRTIndex ( )
IntPtr [] OVRRTOverlayConnector.overlayTexturePtrs ( )
RenderTexture [] OVRRTOverlayConnector.overlayRTChain ( )
RenderTexture OVRRTOverlayConnector.srcRT ( )
Camera OVRRTOverlayConnector.ownerCamera ( )

Member Function Documentation

void OVRRTOverlayConnector.RefreshRenderTextureChain ( )
Reconstruct render texture chain if ownerCamera's targetTexture was changed

Object Data Documentation

void OVRRTOverlayConnector.ConstructRenderTextureChain ( )
Triple buffer the textures applying to overlay
void OVRRTOverlayConnector.Start ( )
void OVRRTOverlayConnector.OnPostRender ( )
Copy camera's render target to triple buffered texture array and send it to OVROverlay object
The documentation for this class was generated from the following file: OVR/Scripts/Util/OVRRTOverlayConnector.cs