refactor(default): glsl cleaning (1/2)

This commit is contained in:
2026-08-28 19:46:46 +02:00
parent 69f98e536f
commit 749206746d
11 changed files with 323 additions and 380 deletions
+3 -3
View File
@@ -2,13 +2,13 @@
#define INC_RAND
float rand(float seed){
float v=pow(abs(seed),6./7.);
v*=sin(v)+1.;
float v = pow(abs(seed), .8571429); // 6. / 7.
v *= sin(v) + 1.;
return fract(v);
}
float rand(vec2 n){
return rand(n.x * 1234 + n.y * 9876);
return rand(n.x * 1234. + n.y * 9876.);
}
#endif