From 75a335f01f62cefe881b2f272008c3e44f9a4367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Tue, 23 Aug 2022 21:52:52 +0800 Subject: [PATCH] bx::kFloatMin to bx:kFloatSmallest (#2884) --- tools/geometryv/geometryv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/geometryv/geometryv.cpp b/tools/geometryv/geometryv.cpp index 261d44780..3663f1828 100644 --- a/tools/geometryv/geometryv.cpp +++ b/tools/geometryv/geometryv.cpp @@ -214,7 +214,7 @@ struct Camera { const bx::Vec3 toTarget = bx::sub(m_target.dest, m_pos.dest); const float toTargetLen = bx::length(toTarget); - const float invToTargetLen = 1.0f / (toTargetLen + bx::kFloatMin); + const float invToTargetLen = 1.0f / (toTargetLen + bx::kFloatSmallest); const bx::Vec3 toTargetNorm = bx::mul(toTarget, invToTargetLen); float delta = toTargetLen * _dz; @@ -237,7 +237,7 @@ struct Camera const bx::Vec3 toPos = bx::sub(m_pos.curr, m_target.curr); const float toPosLen = bx::length(toPos); - const float invToPosLen = 1.0f / (toPosLen + bx::kFloatMin); + const float invToPosLen = 1.0f / (toPosLen + bx::kFloatSmallest); const bx::Vec3 toPosNorm = bx::mul(toPos, invToPosLen); float ll[2];