This commit is contained in:
Branimir Karadžić
2017-06-12 22:43:07 -07:00
parent f560bcfd55
commit 30b6d07e29
16 changed files with 277 additions and 183 deletions

View File

@@ -194,8 +194,9 @@ class ExampleRaymarch : public entry::AppI
// Set view and projection matrix for view 1.
bgfx::setViewTransform(0, view, proj);
const bgfx::Caps* caps = bgfx::getCaps();
float ortho[16];
bx::mtxOrtho(ortho, 0.0f, 1280.0f, 720.0f, 0.0f, 0.0f, 100.0f);
bx::mtxOrtho(ortho, 0.0f, 1280.0f, 720.0f, 0.0f, 0.0f, 100.0f, 0.0, caps->homogeneousDepth);
// Set view and projection matrix for view 0.
bgfx::setViewTransform(1, NULL, ortho);