scripts reorganize

This commit is contained in:
2026-10-06 22:38:28 +02:00
parent 0734bee219
commit d6674ac55d
14 changed files with 2 additions and 59 deletions

View File

@@ -0,0 +1,17 @@
const float display_framerate = 60.0;
const vec2 display_resolution = vec2(2520.0, 1680.0);
const float gamma = 1.0;
float rand(vec2 uv, float t) {
return fract(sin(dot(uv, vec2(1225.6548, 321.8942))) * 4251.4865 + t);
}
float Sigmoid(float x) { return 1.0 / (1.0 + (exp(-(x - 0.5) * 14.0))); }
void windowShader(inout vec4 color) {
color = vec4(Sigmoid(color.r), Sigmoid(color.g), Sigmoid(color.b), 1.0);
color = pow(color, vec4(gamma));
color.a = 1.0;
}