summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-23 00:32:44 -0700
committeryum <yum.food.vr@gmail.com>2024-10-23 00:32:44 -0700
commit4eb21bddb139677268c9abd28e06e5f4dbe69f6e (patch)
tree07542b000c18562d28ac25d77538d89f4c81a44e /math.cginc
parentdd46f7e166eabee42564b6dfe4c0a4e1d54b5e7d (diff)
Add gerstner water gimmick
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc3
1 files changed, 3 insertions, 0 deletions
diff --git a/math.cginc b/math.cginc
index 968f888..bfbe653 100644
--- a/math.cginc
+++ b/math.cginc
@@ -3,6 +3,9 @@
#ifndef __MATH_INC
#define __MATH_INC
+#define PI 3.14159265
+#define TAU PI * 2.0
+
// Hacky parameterizable whiteout blending. Probably some big mistakes but it
// passes the eyeball test.
// At w=0.5, this looks kinda like whiteout blending.