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

@@ -366,7 +366,9 @@ class ExampleOIT : public entry::AppI
// Set view and projection matrix for view 1.
bx::mtxIdentity(view);
bx::mtxOrtho(proj, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 100.0f);
const bgfx::Caps* caps = bgfx::getCaps();
bx::mtxOrtho(proj, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 100.0f, 0.0f, caps->homogeneousDepth);
bgfx::setViewTransform(1, view, proj);
for (uint32_t depth = 0; depth < 3; ++depth)