feat: update project with glsl-glyphs

This commit is contained in:
klemek committed 2026-11-08 18:50:59 +01:00
1 parent 93fca80829
commit 0d8e97323e
7 files changed
+46 -18

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ in vec2 vUV;
out vec4 fragColor;
#include inc_functions.glsl
#include inc_cp437.glsl
#include inc_write.glsl
uniform sampler2D iTex0;
uniform int iFPS;
@@ -18,7 +18,7 @@ void main() {
// vec2 uv = 1 - vUV;
vec2 uv = vUV;
vec3 c = texture(iTex0, uv).xyz;
c = mix(c, 1. - c, iDemo * write_int(uv * 20., vec2(1.), iFPS, 2));
c = mix(c, 1. - c, iDemo * write_int(uv * 20., vec2(1.), min(99, iFPS), 2));
c = mix(c, 1. - c, iDemo * write_5(uv * 20., vec2(1., 18.), textDEMO));
fragColor = vec4(c, 1);
}