Esempio n. 1
0
        public void DisplayEye(IntPtr nativePointer)
        {
            VRTextureBounds_t tboud = new VRTextureBounds_t();
            Texture_t         tex;

            tex.eType       = EGraphicsAPIConvention.API_DirectX;
            tex.eColorSpace = EColorSpace.Auto;
            tex.handle      = nativePointer;// MyRender11.Backbuffer.m_resource.NativePointer;
            tboud.vMin      = 0;
            tboud.vMax      = 1;

            tboud.uMin = m_outsideLimit / 2;
            tboud.uMax = (1 - m_insideLimit) / 2;
            var error = m_vrCompositor.Submit(EVREye.Eye_Left, ref tex, ref tboud, EVRSubmitFlags.Submit_Default);

            tboud.uMin = 0.5f + m_insideLimit / 2;
            tboud.uMax = 0.5f + (1 - m_outsideLimit) / 2;
            var error2 = m_vrCompositor.Submit(EVREye.Eye_Right, ref tex, ref tboud, EVRSubmitFlags.Submit_Default);

            //FrameDone();

            if (debug_var)
            {
                m_vrCompositor.CompositorDumpImages();
            }
        }