feat: crt/vignette/chromatic-aberration/pixelate shader + dynamischer F10-cycle

This commit is contained in:
2026-04-23 21:07:00 +02:00
parent 55668c1fb0
commit d3c70b0f84
7 changed files with 88 additions and 0 deletions
@@ -0,0 +1,17 @@
#version 300 es
precision highp float;
in vec2 v_texcoord;
uniform sampler2D tex;
out vec4 fragColor;
void main() {
float offset = 0.004;
float r = texture(tex, v_texcoord + vec2( offset, 0.0)).r;
float g = texture(tex, v_texcoord ).g;
float b = texture(tex, v_texcoord - vec2( offset, 0.0)).b;
float a = texture(tex, v_texcoord).a;
fragColor = vec4(r, g, b, a);
}