From 4eb21bddb139677268c9abd28e06e5f4dbe69f6e Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 23 Oct 2024 00:32:44 -0700 Subject: Add gerstner water gimmick --- math.cginc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'math.cginc') 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. -- cgit v1.2.3