From 73dc0b79f86ae8f396e10b1e7873d2cb6f822365 Mon Sep 17 00:00:00 2001 From: klemek Date: Wed, 26 Aug 2026 19:07:17 +0200 Subject: [PATCH] wip --- Makefile | 2 +- project/frag7.glsl | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 199560b..ceaff96 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,4 @@ build: forge-steel/build/forge .PHONY: run run: - LIBGL_ALWAYS_SOFTWARE=true forge-steel/build/forge $(RUN_ARGS) + forge-steel/build/forge $(RUN_ARGS) diff --git a/project/frag7.glsl b/project/frag7.glsl index 7b190d6..8751d4b 100644 --- a/project/frag7.glsl +++ b/project/frag7.glsl @@ -6,10 +6,15 @@ in vec2 vUV; out vec4 fragColor; #include inc_functions.glsl +#include inc_cp437.glsl uniform sampler2D iTex0; +uniform int iFPS; void main() { - vec3 c = gauss(iTex0, vUV, 3, 2 / max(iResolution.x, iResolution.y)).xyz; + vec2 uv = vec2(vUV.x, 1 - vUV.y); + // vec2 uv = vUV; + vec3 c = gauss(iTex0, uv, 3, 2 / max(iResolution.x, iResolution.y)).xyz; + c = mix(c, 1 - c, write_int(uv * 20, vec2(0.1, 0.1), iFPS, 2)); fragColor = vec4(c, 1); }