diff options
author | 2015-10-15 10:42:29 +0200 | |
---|---|---|
committer | 2015-10-15 10:42:29 +0200 | |
commit | 8981faa61fc1e9421805938e6656d84ff61be1f9 (patch) | |
tree | 6295fadfe79ab1f2bafafd3f321e01063ca3cff7 /3rdparty/bgfx/examples/21-deferred/deferred.cpp | |
parent | a74a7a37ef1f6ea1fd9c96148be8fa7ba09b1054 (diff) |
update bgfx to latest (nw)
Diffstat (limited to '3rdparty/bgfx/examples/21-deferred/deferred.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/21-deferred/deferred.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/3rdparty/bgfx/examples/21-deferred/deferred.cpp b/3rdparty/bgfx/examples/21-deferred/deferred.cpp index 7aae64fe64b..019b8920518 100644 --- a/3rdparty/bgfx/examples/21-deferred/deferred.cpp +++ b/3rdparty/bgfx/examples/21-deferred/deferred.cpp @@ -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; @@ -233,11 +228,11 @@ class Deferred : public entry::AppI // Enable m_debug text. bgfx::setDebug(m_debug); - // Set clear color palette for index 0 - bgfx::setClearColor(0, UINT32_C(0x00000000) ); + // Set palette color for index 0 + bgfx::setPaletteColor(0, UINT32_C(0x00000000) ); - // Set clear color palette for index 1 - bgfx::setClearColor(1, UINT32_C(0x303030ff) ); + // Set palette color for index 1 + bgfx::setPaletteColor(1, UINT32_C(0x303030ff) ); // Set geometry pass view clear state. bgfx::setViewClear(RENDER_PASS_GEOMETRY_ID @@ -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); |