mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
use separate projection matrices for left/right eyes in HMD demos
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user