本文整理汇总了C#中EVREye类的典型用法代码示例。如果您正苦于以下问题:C# EVREye类的具体用法?C# EVREye怎么用?C# EVREye使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EVREye类属于命名空间,在下文中一共展示了EVREye类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Set
public void Set(SteamVR vr, EVREye eye)
{
if (SteamVR_CameraMask.hiddenAreaMeshes[(int)eye] == null)
{
SteamVR_CameraMask.hiddenAreaMeshes[(int)eye] = SteamVR_Utils.CreateHiddenAreaMesh(vr.hmd.GetHiddenAreaMesh(eye), vr.textureBounds[(int)eye]);
}
this.meshFilter.mesh = SteamVR_CameraMask.hiddenAreaMeshes[(int)eye];
}
示例2: GetProjectionMatrix
public HmdMatrix44_t GetProjectionMatrix(EVREye eEye,float fNearZ,float fFarZ,EGraphicsAPIConvention eProjType)
{
HmdMatrix44_t result = FnTable.GetProjectionMatrix(eEye,fNearZ,fFarZ,eProjType);
return result;
}
示例3: GetEyeToHeadTransform
public override HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye)
{
CheckIfUsable();
HmdMatrix34_t result = VRNativeEntrypoints.VR_IVRSystem_GetEyeToHeadTransform(m_pVRSystem,eEye);
return result;
}
示例4: GetProjectionRaw
public override void GetProjectionRaw(EVREye eEye,ref float pfLeft,ref float pfRight,ref float pfTop,ref float pfBottom)
{
CheckIfUsable();
pfLeft = 0;
pfRight = 0;
pfTop = 0;
pfBottom = 0;
VRNativeEntrypoints.VR_IVRSystem_GetProjectionRaw(m_pVRSystem,eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom);
}
示例5: VR_IVRSystem_GetHiddenAreaMesh
internal static extern HiddenAreaMesh_t VR_IVRSystem_GetHiddenAreaMesh(IntPtr instancePtr, EVREye eEye);
示例6: GetEyeOutputViewport
public abstract void GetEyeOutputViewport(EVREye eEye,ref uint pnX,ref uint pnY,ref uint pnWidth,ref uint pnHeight);
示例7: RenderEye
void RenderEye(SteamVR vr, EVREye eye)
{
int i = (int)eye;
SteamVR_Render.eye = eye;
if (cameraMask != null)
cameraMask.Set(vr, eye);
foreach (var c in cameras)
{
c.transform.localPosition = vr.eyes[i].pos;
c.transform.localRotation = vr.eyes[i].rot;
// Update position to keep from getting culled
cameraMask.transform.position = c.transform.position;
var camera = c.GetComponent<Camera>();
camera.targetTexture = SteamVR_Camera.GetSceneTexture(camera.hdr);
int cullingMask = camera.cullingMask;
if (eye == EVREye.Eye_Left)
{
camera.cullingMask &= ~rightMask;
camera.cullingMask |= leftMask;
}
else
{
camera.cullingMask &= ~leftMask;
camera.cullingMask |= rightMask;
}
camera.Render();
camera.cullingMask = cullingMask;
}
}
示例8: Submit
public EVRCompositorError Submit(EVREye eEye,ref Texture_t pTexture,ref VRTextureBounds_t pBounds,EVRSubmitFlags nSubmitFlags)
{
EVRCompositorError result = FnTable.Submit(eEye,ref pTexture,ref pBounds,nSubmitFlags);
return result;
}
示例9: GetEyeOutputViewport
public void GetEyeOutputViewport(EVREye eEye,ref uint pnX,ref uint pnY,ref uint pnWidth,ref uint pnHeight)
{
pnX = 0;
pnY = 0;
pnWidth = 0;
pnHeight = 0;
FnTable.GetEyeOutputViewport(eEye,ref pnX,ref pnY,ref pnWidth,ref pnHeight);
}
示例10: GetHiddenAreaMesh
public HiddenAreaMesh_t GetHiddenAreaMesh(EVREye eEye)
{
HiddenAreaMesh_t result = FnTable.GetHiddenAreaMesh(eEye);
return result;
}
示例11: GetEyeToHeadTransform
public HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye)
{
HmdMatrix34_t result = FnTable.GetEyeToHeadTransform(eEye);
return result;
}
示例12: ComputeDistortion
public DistortionCoordinates_t ComputeDistortion(EVREye eEye,float fU,float fV)
{
DistortionCoordinates_t result = FnTable.ComputeDistortion(eEye,fU,fV);
return result;
}
示例13: GetProjectionRaw
public void GetProjectionRaw(EVREye eEye,ref float pfLeft,ref float pfRight,ref float pfTop,ref float pfBottom)
{
pfLeft = 0;
pfRight = 0;
pfTop = 0;
pfBottom = 0;
FnTable.GetProjectionRaw(eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom);
}
示例14: VR_IVRSystem_GetEyeToHeadTransform
internal static extern HmdMatrix34_t VR_IVRSystem_GetEyeToHeadTransform(IntPtr instancePtr, EVREye eEye);
示例15: GetProjectionMatrix
public abstract HmdMatrix44_t GetProjectionMatrix(EVREye eEye,float fNearZ,float fFarZ,EGraphicsAPIConvention eProjType);