Removing old vector math.

This commit is contained in:
Branimir Karadžić
2018-11-16 21:54:20 -08:00
parent b1752bc630
commit 66a7d6ab05
29 changed files with 66 additions and 67 deletions

View File

@@ -627,9 +627,9 @@ public:
float mtxInvVp[16];
bx::mtxInverse(mtxInvVp, mtxVp);
float zero[3] = {};
float eye[] = { 5.0f, 10.0f, 5.0f };
bx::mtxLookAt(view, eye, zero);
const bx::Vec3 at = { 0.0f, 0.0f, 0.0f };
const bx::Vec3 eye = { 5.0f, 10.0f, 5.0f };
bx::mtxLookAt(view, eye, at);
bx::mtxProj(proj, 45.0f, float(m_width)/float(m_height), 1.0f, 15.0f, bgfx::getCaps()->homogeneousDepth);
bx::mtxMul(mtxVp, view, proj);