thebookofshaders/10/tmp/glitch.sh

14 lines
224 B
Bash
Raw Normal View History

2015-10-06 20:24:33 +00:00
#!/bin/bash
2017-03-20 13:37:22 +00:00
SHADER=$1
SEC=$1
2015-10-06 20:24:33 +00:00
COUNTER=0
for i in `seq -w 0.01 .031 $SEC`; do
echo $i
2017-03-20 13:37:22 +00:00
`glslViewer $SHADER -s $i -o frame-$COUNTER.png`
2017-08-19 10:11:58 +00:00
let COUNTER=COUNTER+1
2015-10-06 20:24:33 +00:00
done
convert -delay 3.5 -loop 1 frame-*.png animated.gif