wip
This commit is contained in:
@@ -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://ttt.io/glsl-raspberry-pi
|
||||
* 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
@@ -12,8 +12,8 @@ uniform sampler2D iTex0;
|
||||
uniform int iFPS;
|
||||
|
||||
void main() {
|
||||
vec2 uv = 1 - vUV;
|
||||
// vec2 uv = vUV;
|
||||
// vec2 uv = 1 - vUV;
|
||||
vec2 uv = vUV;
|
||||
vec3 c = texture(iTex0, uv).xyz;
|
||||
c = mix(c, 1 - c, write_int(uv * 20, vec2(.1, .1), iFPS, 2));
|
||||
fragColor = vec4(c, 1);
|
||||
|
||||
Reference in New Issue
Block a user