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 --- trochoid_math.cginc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'trochoid_math.cginc') diff --git a/trochoid_math.cginc b/trochoid_math.cginc index 334b14e..7a4e7e2 100644 --- a/trochoid_math.cginc +++ b/trochoid_math.cginc @@ -1,13 +1,11 @@ #include "globals.cginc" +#include "math.cginc" #ifndef __TROCHOID_MATH #define __TROCHOID_MATH #if defined(_TROCHOID) -#define PI 3.14159265 -#define TAU PI * 2.0 - float3 trochoid_map(float theta, float r0, float3 vert_z) { r0 *= r0; -- cgit v1.2.3