我一直在使用 Oculus Rift,并将其全部设置为在我的项目中使用。现在我只需要设置两个视口。正如 Psuedocode 中的文档所述。
// Render Left Eye Half
SetViewport(0, 0, HResolution/2, VResolution);
SetProjection(LeftEyeProjectionMatrix);
RenderScene();
// Render Right Eye Half
SetViewport(HResolution/2, 0, HResolution, VResolution);
SetProjection(RightEyeProjectionMatrix);
RenderScene();
我用谷歌搜索了很多,但没有得到结果。有人可以解释一下如何使用 DirectX11 来指导我一些教程或源代码吗?最好解释一下如何分割视口。