Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
Created February 12, 2017 14:57
Show Gist options
  • Select an option

  • Save patriciogonzalezvivo/7d491ad543fd8f08d6d22c3f3181729e to your computer and use it in GitHub Desktop.

Select an option

Save patriciogonzalezvivo/7d491ad543fd8f08d6d22c3f3181729e to your computer and use it in GitHub Desktop.
Frag Shader to gif
#!/bin/bash
SHADER=$1
SEC=$1
COUNTER=0
for i in `seq -w 0.01 .031 $SEC`; do
echo $i
`glslViewer $SHADER -s $i -o frame-$COUNTER.png`
let COUNTER=COUNTER+1
done
convert -delay 3.5 -loop 1 frame-*.png animated.gif
@ymc3013

ymc3013 commented Oct 2, 2025

Copy link
Copy Markdown

it's not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment