This commit is contained in:
2026-08-27 19:30:06 +02:00
parent 1d0a8e391a
commit 6cb62a0318
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -47,3 +47,8 @@ sudo apt install mesa-utils libglfw3-dev libgl-dev libasound2-dev libv4l-dev lib
* https://www.baeldung.com/linux/opengl-check-working * https://www.baeldung.com/linux/opengl-check-working
* https://ttt.io/glsl-raspberry-pi * https://ttt.io/glsl-raspberry-pi
* https://drgeoffathome.wordpress.com/2020/02/03/opengl-without-x-on-raspberry-pi-4-part-1/ * https://drgeoffathome.wordpress.com/2020/02/03/opengl-without-x-on-raspberry-pi-4-part-1/
## TODO
* PAL/NTSC switch
* Sync in -> fake midi ?
+2 -2
View File
@@ -12,8 +12,8 @@ uniform sampler2D iTex0;
uniform int iFPS; uniform int iFPS;
void main() { void main() {
vec2 uv = 1 - vUV; // vec2 uv = 1 - vUV;
// vec2 uv = vUV; vec2 uv = vUV;
vec3 c = texture(iTex0, uv).xyz; vec3 c = texture(iTex0, uv).xyz;
c = mix(c, 1 - c, write_int(uv * 20, vec2(.1, .1), iFPS, 2)); c = mix(c, 1 - c, write_int(uv * 20, vec2(.1, .1), iFPS, 2));
fragColor = vec4(c, 1); fragColor = vec4(c, 1);