public GLVRGraphics(OpenVRScene scene, bool showRenderModels = true) { this.showRenderModels = showRenderModels; var dim = scene.GetRenderTarget(); renderWidth = dim.Item1; renderHeight = dim.Item2; leftEyeFrameBuffer = EyeFrameBuffer.Create(renderWidth, renderHeight); rightEyeFrameBuffer = EyeFrameBuffer.Create(renderWidth, renderHeight); if (showRenderModels) renderModels = GLRenderModels.Create(scene); }
public GLVRGraphics(OpenVRScene scene, bool showRenderModels = true) { this.showRenderModels = showRenderModels; var dim = scene.GetRenderTarget(); renderWidth = dim.Item1; renderHeight = dim.Item2; leftEyeFrameBuffer = EyeFrameBuffer.Create(renderWidth, renderHeight); rightEyeFrameBuffer = EyeFrameBuffer.Create(renderWidth, renderHeight); if (showRenderModels) { renderModels = GLRenderModels.Create(scene); } }