diff options
| author | yum <yum.food.vr@gmail.com> | 2024-09-10 15:43:39 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-09-10 15:43:39 -0700 |
| commit | 39283e531e865db09d527bdfa44df7f4376783a5 (patch) | |
| tree | b129c0358904f8367d9c0db59a26f470357fba5a /math.cginc | |
| parent | 50bfca1c68773dd8c663577fcef23ac7cfbca0f7 (diff) | |
Start new eye shader, add UV mirror flipping
Also tune rand3() to behave better on rorschach demo.
Diffstat (limited to 'math.cginc')
| -rw-r--r-- | math.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ float rand2(float2 p) // Generate a random number on [0, 1]. float rand3(float3 p) { - return glsl_mod(sin(dot(p, float3(897.0, 367.0, 197.0))) * 1073.6, 1.0); + return glsl_mod(sin(dot(p, float3(151.0, 157.0, 163.0))) * 997.0, 1.0); } float length2(float2 p) |
