This commit is contained in:
Branimir Karadžić 2015-09-14 19:54:22 -07:00
parent 5690e1cde8
commit eb6d7444fb

View file

@ -18,11 +18,6 @@
static float s_texelHalf = 0.0f; static float s_texelHalf = 0.0f;
static bool s_originBottomLeft = false; static bool s_originBottomLeft = false;
inline void mtxProj(float* _result, float _fovy, float _aspect, float _near, float _far)
{
bx::mtxProj(_result, _fovy, _aspect, _near, _far, s_originBottomLeft);
}
struct PosNormalTangentTexcoordVertex struct PosNormalTangentTexcoordVertex
{ {
float m_x; float m_x;
@ -504,7 +499,7 @@ class Deferred : public entry::AppI
bgfx::setViewFrameBuffer(RENDER_PASS_LIGHT_ID, m_lightBuffer); bgfx::setViewFrameBuffer(RENDER_PASS_LIGHT_ID, m_lightBuffer);
float proj[16]; float proj[16];
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, s_originBottomLeft);
bgfx::setViewFrameBuffer(RENDER_PASS_GEOMETRY_ID, m_gbuffer); bgfx::setViewFrameBuffer(RENDER_PASS_GEOMETRY_ID, m_gbuffer);
bgfx::setViewTransform(RENDER_PASS_GEOMETRY_ID, view, proj); bgfx::setViewTransform(RENDER_PASS_GEOMETRY_ID, view, proj);