Has anyone had success with OVRGUI.StereoDrawTexture()?
I'm calling this within a OnGUI loop, however it seems to only draw my left side instead of drawing in stereo as the name would imply. I modified the class with a singleton reference, but that shouldn't matter from what I can see.
My Implementation:
Looking at the StereoDrawTexture I only see a single drawtexture call:
This leads me to think I have to call this method twice and position each eye, which could be done without using this method all together.
My Implementation:
private void OnGUI()
{
OVRGUI.instance.StereoDrawTexture(0, 0, Screen.width/2, Screen.height, ref reading, Color.white);
}
Looking at the StereoDrawTexture I only see a single drawtexture call:
public void StereoDrawTexture(int X, int Y, int wX, int hY, ref Texture image, Color color)
{
GUI.color = color;
// Make sure to change font if it needs replacement
if(GUI.skin.font != FontReplace) GUI.skin.font = FontReplace;
float s = PixelWidth / DisplayWidth;
CalcPositionAndSize(X * s, Y * s, wX * s, hY * s, ref DrawRect);
GUI.DrawTexture(DrawRect, image);
}
This leads me to think I have to call this method twice and position each eye, which could be done without using this method all together.
