A playground for creating cool glsl shaders.
Use Shadertoy to run fragment shaders found in frag/ in the browser.
- Shadertoy uses the
void mainImage()driver function that is (hopefully) provided in the.fragfile. - Shadertoy defines its own
void main()to run the shader so the provided function needs to be removed before it will work. - Shadertoy provides various
uniformvariables as standard input, so the.fragfiles in this repo contain#ifmacro workarounds to make it easier for them to work in both Shadetoy andglslViewer.
- Find a fragment shader in
frag/. - Visit Shadertoy.
- Copy/paste the fragment shader code.
- Remove
main()entirely.
Use glslViewer to run fragment and vertex shaders locally. They should run out of the box if installed properly.
$ glslViewer frag/default.fragBe sure to check the wiki if that command isn't working.