summaryrefslogtreecommitdiff
path: root/shaders/main.cc
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2025-11-26 00:19:26 -0800
committerHunter Kvalevog <hunter@kvog.sh>2025-11-26 00:19:26 -0800
commit69151820e0ef4096c6dc5e5c35470fcd91d86a84 (patch)
treeb2808086c9439a055e2475104632f92c43da08a7 /shaders/main.cc
parenta18ad3a6436eb298bea80223aa3be57d63c948ab (diff)
shaders: Fix Visual Studio build
Diffstat (limited to 'shaders/main.cc')
-rw-r--r--shaders/main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/shaders/main.cc b/shaders/main.cc
index 443f08e..11688b5 100644
--- a/shaders/main.cc
+++ b/shaders/main.cc
@@ -25,6 +25,8 @@
// Geometry
// --------------------------------------------------------------------------------
+constexpr float Pi = 3.1415926535f;
+
template <typename T>
static inline T Min(T lhs, T rhs)
{
@@ -45,7 +47,7 @@ static inline T Clamp(T val, T vmin, T vmax)
static inline float Radians(float degrees)
{
- return degrees * M_PI / 180.0f;
+ return degrees * Pi / 180.0f;
}
class Vec2