diff options
| author | yum <yum.food.vr@gmail.com> | 2025-01-27 15:30:46 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-01-27 15:30:46 -0800 |
| commit | 5f0746ebbf8eb6216281424a4acbefb68dc13c59 (patch) | |
| tree | 786d7d2c66f5935dce85a876c676ac74238a5acc /math.cginc | |
| parent | f9eb05f74fd3697f93d3abbdad9e77638eb43651 (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.cginc | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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) |
