summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
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.