mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-12 05:28:19 +00:00
Fixing projection matrix in examples.
This commit is contained in:
@@ -403,7 +403,7 @@ int _main_(int _argc, char** _argv)
|
||||
float view[16];
|
||||
float proj[16];
|
||||
bx::mtxLookAt(view, eye, at);
|
||||
bx::mtxProj(proj, 60.0f, float(width)/float(height), 0.1f, 100.0f);
|
||||
bx::mtxProj(proj, 60.0f, float(width)/float(height), 0.1f, 100.0f, bgfx::getCaps()->homogeneousDepth);
|
||||
|
||||
// Set view and projection matrix for view 0.
|
||||
bgfx::setViewTransform(0, view, proj);
|
||||
|
||||
Reference in New Issue
Block a user