diff options
| author | yum <yum.food.vr@gmail.com> | 2024-10-23 00:32:44 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-10-23 00:32:44 -0700 |
| commit | 4eb21bddb139677268c9abd28e06e5f4dbe69f6e (patch) | |
| tree | 07542b000c18562d28ac25d77538d89f4c81a44e /trochoid_math.cginc | |
| parent | dd46f7e166eabee42564b6dfe4c0a4e1d54b5e7d (diff) | |
Add gerstner water gimmick
Diffstat (limited to 'trochoid_math.cginc')
| -rw-r--r-- | trochoid_math.cginc | 4 |
1 files changed, 1 insertions, 3 deletions
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; |
