From 3cabe28c6e270c28568bd61efec317b91f04bdf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 4 Jan 2016 21:48:12 -0800 Subject: [PATCH] Cleanup. --- examples/27-terrain/terrain.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/27-terrain/terrain.cpp b/examples/27-terrain/terrain.cpp index 32686a77..27680f61 100644 --- a/examples/27-terrain/terrain.cpp +++ b/examples/27-terrain/terrain.cpp @@ -313,11 +313,11 @@ class Terrain : public entry::AppI // Raise/Lower and scale by brush power. height += (bx::fclamp(brushAttn * m_brush.m_power, 0.0, m_brush.m_power) * m_brush.m_raise) - ? 1.0 - : -1.0 + ? 1.0f + : -1.0f ; - m_terrain.m_heightMap[heightMapPos] = (uint8_t)bx::fclamp(height, 0.0, 255.0); + m_terrain.m_heightMap[heightMapPos] = (uint8_t)bx::fclamp(height, 0.0f, 255.0f); m_terrain.m_dirty = true; } } @@ -328,8 +328,8 @@ class Terrain : public entry::AppI float ray_clip[4]; ray_clip[0] = ( (2.0f * m_mouseState.m_mx) / m_width - 1.0f) * -1.0f; ray_clip[1] = ( (1.0f - (2.0f * m_mouseState.m_my) / m_height) ) * -1.0f; - ray_clip[2] = -1.0; - ray_clip[3] = 1.0; + ray_clip[2] = -1.0f; + ray_clip[3] = 1.0f; float invProjMtx[16]; bx::mtxInverse(invProjMtx, m_projMtx);