mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Cleanup.
This commit is contained in:
parent
5690e1cde8
commit
eb6d7444fb
1 changed files with 1 additions and 6 deletions
|
@ -18,11 +18,6 @@
|
|||
static float s_texelHalf = 0.0f;
|
||||
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
|
||||
{
|
||||
float m_x;
|
||||
|
@ -504,7 +499,7 @@ class Deferred : public entry::AppI
|
|||
bgfx::setViewFrameBuffer(RENDER_PASS_LIGHT_ID, m_lightBuffer);
|
||||
|
||||
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::setViewTransform(RENDER_PASS_GEOMETRY_ID, view, proj);
|
||||
|
|
Loading…
Reference in a new issue