summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-01-27 15:30:46 -0800
committeryum <yum.food.vr@gmail.com>2025-01-27 15:30:46 -0800
commit5f0746ebbf8eb6216281424a4acbefb68dc13c59 (patch)
tree786d7d2c66f5935dce85a876c676ac74238a5acc /math.cginc
parentf9eb05f74fd3697f93d3abbdad9e77638eb43651 (diff)
Add ability to swap decal slots
Also: * Rim lighting can disable texture normals * Frame counter is now hidden behind a checkbox, and unconditionally overrides audiolink
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc8
1 files changed, 0 insertions, 8 deletions
diff --git a/math.cginc b/math.cginc
index 2a384fb..80fa9ab 100644
--- a/math.cginc
+++ b/math.cginc
@@ -149,20 +149,12 @@ float rand(uint seed) {
}
// Generate a random number on [0, 1].
-/*
float rand2(float2 p)
{
return frac(sin(dot(p,
float2(12.9898, 78.233)))
* 43758.5453123);
}
-*/
-float rand2(float2 p)
-{
- float3 p3 = frac(float3(p.xyx) * float3(.1031, .1030, .0973));
- p3 += dot(p3, p3.yzx + 33.33);
- return frac((p3.x + p3.y) * p3.z);
-}
// Generate a random number on [0, 1].
float rand3(float3 p)