예제 #1
0
    // Token: 0x060000B7 RID: 183 RVA: 0x000083AC File Offset: 0x000065AC
    private void RenderEye(global::SteamVR vr, global::Valve.VR.EVREye eye)
    {
        global::SteamVR_Render.eye = eye;
        bool flag = this.cameraMask != null;

        if (flag)
        {
            this.cameraMask.Set(vr, eye);
        }
        foreach (global::SteamVR_Camera steamVR_Camera in this.cameras)
        {
            steamVR_Camera.transform.localPosition = vr.eyes[(int)eye].pos;
            steamVR_Camera.transform.localRotation = vr.eyes[(int)eye].rot;
            this.cameraMask.transform.position     = steamVR_Camera.transform.position;
            global::UnityEngine.Camera component = steamVR_Camera.GetComponent <global::UnityEngine.Camera>();
            component.targetTexture = global::SteamVR_Camera.GetSceneTexture(component.allowHDR);
            int  cullingMask = component.cullingMask;
            bool flag2       = eye == global::Valve.VR.EVREye.Eye_Left;
            if (flag2)
            {
                component.cullingMask &= ~this.rightMask;
                component.cullingMask |= this.leftMask;
            }
            else
            {
                component.cullingMask &= ~this.leftMask;
                component.cullingMask |= this.rightMask;
            }
            component.Render();
            component.cullingMask = cullingMask;
        }
    }
예제 #2
0
 // Token: 0x06000134 RID: 308 RVA: 0x0000B7D8 File Offset: 0x000099D8
 public void GetEyeOutputViewport(global::Valve.VR.EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight)
 {
     pnX      = 0U;
     pnY      = 0U;
     pnWidth  = 0U;
     pnHeight = 0U;
     this.FnTable.GetEyeOutputViewport(eEye, ref pnX, ref pnY, ref pnWidth, ref pnHeight);
 }
예제 #3
0
 // Token: 0x06000108 RID: 264 RVA: 0x0000B12D File Offset: 0x0000932D
 public void GetProjectionRaw(global::Valve.VR.EVREye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom)
 {
     pfLeft   = 0f;
     pfRight  = 0f;
     pfTop    = 0f;
     pfBottom = 0f;
     this.FnTable.GetProjectionRaw(eEye, ref pfLeft, ref pfRight, ref pfTop, ref pfBottom);
 }
예제 #4
0
    // Token: 0x0600004C RID: 76 RVA: 0x000039C4 File Offset: 0x00001BC4
    public void Set(global::SteamVR vr, global::Valve.VR.EVREye eye)
    {
        bool flag = global::SteamVR_CameraMask.hiddenAreaMeshes[(int)eye] == null;

        if (flag)
        {
            global::SteamVR_CameraMask.hiddenAreaMeshes[(int)eye] = global::SteamVR_Utils.CreateHiddenAreaMesh(vr.hmd.GetHiddenAreaMesh(eye), vr.textureBounds[(int)eye]);
        }
        this.meshFilter.mesh = global::SteamVR_CameraMask.hiddenAreaMeshes[(int)eye];
    }
예제 #5
0
 // Token: 0x06000173 RID: 371 RVA: 0x0000C178 File Offset: 0x0000A378
 public global::Valve.VR.EVRCompositorError Submit(global::Valve.VR.EVREye eEye, ref global::Valve.VR.Texture_t pTexture, ref global::Valve.VR.VRTextureBounds_t pBounds, global::Valve.VR.EVRSubmitFlags nSubmitFlags)
 {
     return(this.FnTable.Submit(eEye, ref pTexture, ref pBounds, nSubmitFlags));
 }
예제 #6
0
 // Token: 0x0600010A RID: 266 RVA: 0x0000B190 File Offset: 0x00009390
 public global::Valve.VR.HmdMatrix34_t GetEyeToHeadTransform(global::Valve.VR.EVREye eEye)
 {
     return(this.FnTable.GetEyeToHeadTransform(eEye));
 }
예제 #7
0
 // Token: 0x06000109 RID: 265 RVA: 0x0000B168 File Offset: 0x00009368
 public global::Valve.VR.DistortionCoordinates_t ComputeDistortion(global::Valve.VR.EVREye eEye, float fU, float fV)
 {
     return(this.FnTable.ComputeDistortion(eEye, fU, fV));
 }
예제 #8
0
 // Token: 0x06000107 RID: 263 RVA: 0x0000B104 File Offset: 0x00009304
 public global::Valve.VR.HmdMatrix44_t GetProjectionMatrix(global::Valve.VR.EVREye eEye, float fNearZ, float fFarZ, global::Valve.VR.EGraphicsAPIConvention eProjType)
 {
     return(this.FnTable.GetProjectionMatrix(eEye, fNearZ, fFarZ, eProjType));
 }
예제 #9
0
 // Token: 0x06000125 RID: 293 RVA: 0x0000B5B0 File Offset: 0x000097B0
 public global::Valve.VR.HiddenAreaMesh_t GetHiddenAreaMesh(global::Valve.VR.EVREye eEye)
 {
     return(this.FnTable.GetHiddenAreaMesh(eEye));
 }