From 5f0746ebbf8eb6216281424a4acbefb68dc13c59 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 27 Jan 2025 15:30:46 -0800 Subject: 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 --- math.cginc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'math.cginc') 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) -- cgit v1.2.3