summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-10-12 16:28:53 -0700
committeryum <yum.food.vr@gmail.com>2025-10-12 16:28:53 -0700
commita4bf31470f7e2855f13d922e3e7ad1c7767d9afd (patch)
treeeeefe31633142978c609c2dd2b4d6890349526a6 /math.cginc
parent6ac3da1b0bd363d70c2f6e4b7b921f2f929dedac (diff)
add geometry shader
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc1
1 files changed, 1 insertions, 0 deletions
diff --git a/math.cginc b/math.cginc
index af71fc6..4cfed67 100644
--- a/math.cginc
+++ b/math.cginc
@@ -4,6 +4,7 @@
#define PI 3.14159265358979f
#define RCP_PI (1.0f / PI)
#define TAU (2.0f * PI)
+#define SQRT_3 1.73205081f
float sin_noise_3d(float3 uvw) {
return sin(uvw[0]) * sin(uvw[1]) * sin(uvw[2]);