Exemple #1
0
        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);
        }     
Exemple #2
0
        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);
            }
        }