summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-16 15:51:20 -0700
committeryum <yum.food.vr@gmail.com>2026-03-16 15:51:29 -0700
commit7bfc0ecde84604abf8974ec2ffd1e9b0efb84bea (patch)
tree4473487cb2d9b06b8cd675bf363f84167684e1ca /math.cginc
parent50fcd18a2fb21cb19893c0c65310a525925c9177 (diff)
Add more debug views
Diffstat (limited to 'math.cginc')
-rwxr-xr-xmath.cginc2
1 files changed, 2 insertions, 0 deletions
diff --git a/math.cginc b/math.cginc
index 6b24a55..7c6db21 100755
--- a/math.cginc
+++ b/math.cginc
@@ -17,6 +17,8 @@
#define SQRT_3_OVER_2 0.8660254037844386f
#define EULERS_CONSTANT 2.718281828f
+#define F1_TO_F3(x) float3((x), (x), (x))
+
float sin_noise_3d(float3 uvw) {
return sin(uvw[0]) * sin(uvw[1]) * sin(uvw[2]);
}