mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
bx math API cleanup.
This commit is contained in:
@@ -316,7 +316,7 @@ public:
|
||||
// Brush attenuation
|
||||
float a2 = (float)(area_x * area_x);
|
||||
float b2 = (float)(area_y * area_y);
|
||||
float brushAttn = m_brush.m_size - bx::fsqrt(a2 + b2);
|
||||
float brushAttn = m_brush.m_size - bx::sqrt(a2 + b2);
|
||||
|
||||
// Raise/Lower and scale by brush power.
|
||||
height += 0.0f < bx::clamp(brushAttn*m_brush.m_power, 0.0f, m_brush.m_power) && m_brush.m_raise
|
||||
|
||||
Reference in New Issue
Block a user