run shader without magenta error screen

This commit is contained in:
Jakob 2023-06-27 17:54:13 +02:00
parent 0e8132135b
commit bc5b87d73a
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,8 @@
# glslViewer order matters, single-dash options need to be before doubledashes? (at least for -p)
test:
glslViewer main.frag video.mp4 -w 960 -h 540 -p 8881 --nocursor --fps30
glslViewer main.frag video.mp4 -w 960 -h 540 -p 8881 -e "error_screen,off" --nocursor --fps30
test-gits:
glslViewer main.frag gits.mp4 -w 960 -h 540 -p 8881 --nocursor --fps30
glslViewer main.frag gits.mp4 -w 960 -h 540 -p 8881 -e "error_screen,off" --nocursor --fps30

View File

@ -2,6 +2,8 @@
precision mediump float;
#endif
// always available
uniform vec2 u_mouse; // mouse pixel coordinates
uniform vec2 u_resolution; // viewport resolution in pixels