summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
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]);
}