Fixed projection matrix.

This commit is contained in:
Branimir Karadžić
2017-02-22 22:17:44 -08:00
parent 0827c42dc6
commit 2e3bdc619e
6 changed files with 7 additions and 16 deletions

View File

@@ -175,7 +175,7 @@ class ExampleCubes : public entry::AppI
bx::mtxLookAt(view, eye, at);
float proj[16];
bx::mtxProj(proj, 60.0f, float(m_width)/float(m_height), 0.1f, 100.0f);
bx::mtxProj(proj, 60.0f, float(m_width)/float(m_height), 0.1f, 100.0f, bgfx::getCaps()->homogeneousDepth);
bgfx::setViewTransform(0, view, proj);
// Set view 0 default viewport.