This commit is contained in:
Branimir Karadžić
2017-12-02 18:15:31 -08:00
parent 90ef8970cc
commit 547d1d2b11
15 changed files with 75 additions and 65 deletions

View File

@@ -1301,7 +1301,7 @@ struct DebugDraw
const Attrib& attrib = m_attrib[m_stack];
const uint32_t num = getCircleLod(attrib.m_lod);
const float step = bx::kPi * 2.0f / num;
_weight = bx::fclamp(_weight, 0.0f, 2.0f);
_weight = bx::clamp(_weight, 0.0f, 2.0f);
float udir[3];
float vdir[3];
@@ -1348,7 +1348,7 @@ struct DebugDraw
const Attrib& attrib = m_attrib[m_stack];
const uint32_t num = getCircleLod(attrib.m_lod);
const float step = bx::kPi * 2.0f / num;
_weight = bx::fclamp(_weight, 0.0f, 2.0f);
_weight = bx::clamp(_weight, 0.0f, 2.0f);
float xy0[2];
float xy1[2];