think this solves stupid

This commit is contained in:
Rakarake 2026-01-03 18:38:22 +01:00
parent fc0bb752f7
commit 502f584fbf
3 changed files with 120 additions and 26 deletions

View file

@ -79,20 +79,17 @@ float limit(float val, float min, float max) {
}
void main() {
vec2 uv = gl_FragCoord.xy / WindowSize;
vec2 screen_uv = gl_FragCoord.xy / WindowSize;
// We'll make origin in the top-left.
uv.y = 1.0 - uv.y;
uv.x *= WindowSize.x / WindowSize.y;
screen_uv.y = 1.0 - screen_uv.y;
screen_uv.x *= WindowSize.x / WindowSize.y;
vec2 uv = vec2(screen_uv.x, screen_uv.y);
uv.y += sin(uv.x * 2.0 + time * 0.2) * 0.47;
uv.y += sin(uv.x * 4.3 + time * 1.34) * 0.09;
uv += 100.0;
//uv.x += time / 20.0;
float out_val = perlin_noise(uv, vec2(0.0, 0.0), time / 1.0);
float min = 0.42 + sin(time)/8.0;
float max = 0.58 + sin(time)/8.0;
//float min = 0.42;
//float max = 0.58;
//out_val = out_val + sin(uv.y + time) / 15.2;
out_val = limit(out_val, min, max);
color = vec4(out_val, 0.4, 0.8, 1.0);
}