use separate projection matrices for left/right eyes in HMD demos

This commit is contained in:
Krzysztof Kondrak
2016-04-04 21:27:49 +02:00
parent c70f37e0ba
commit 76a46af418
7 changed files with 7 additions and 7 deletions

View File

@@ -91,7 +91,7 @@ class ExampleMesh : public entry::AppI
{
float view[16];
bx::mtxQuatTranslationHMD(view, hmd->eye[0].rotation, eye);
bgfx::setViewTransform(0, view, hmd->eye[0].projection);
bgfx::setViewTransform(0, view, hmd->eye[0].projection, BGFX_VIEW_STEREO, hmd->eye[1].projection);
// Set view 0 default viewport.
//