Add treppe-gl shader renderer for treppe2000

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
April John 2026-10-16 14:34:05 +02:00
commit 5e6bc54d08
2 changed files with 550 additions and 0 deletions

10
shaders/flow.glsl Normal file
View file

@ -0,0 +1,10 @@
// Rainbow flowing up the stairs
vec3 hue(float h) {
return clamp(abs(mod(h * 6.0 + vec3(0.0, 4.0, 2.0), 6.0) - 3.0) - 1.0,
0.0, 1.0);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
float x = fragCoord.x / iResolution.x;
fragColor = vec4(hue(fract(x - iTime * 0.1)), 1.0);
}

7
shaders/pulse.glsl Normal file
View file

@ -0,0 +1,7 @@
// Warm white pulse travelling along the stairs
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
float x = fragCoord.x / iResolution.x;
float wave = 0.5 + 0.5 * sin(x * 6.2831 * 2.0 - iTime * 3.0);
vec3 warm = vec3(1.0, 0.45, 0.1);
fragColor = vec4(warm * wave, 1.0);
}