the following is my contribution to a gig performed by No computer. it's a series of 2D shaders that will potentially be displayed on a big screen during the Bump festival in Kortrijk on the 24th of june 2016. it is mostly hacked from the following shaders:
https://www.shadertoy.com/view/MlXGDf, https://www.shadertoy.com/view/Xds3zN & http://thebookofshaders.com/
the basic setup is a Processing 3 sketch with the following code:
PShader shader;
String name = "shader_name";
void setup() {
size( 1200, 500, P3D );
noStroke();
shader = loadShader( name + ".glsl");
}
void draw() {
shader.set("u_resolution", float(width), float(height));
shader.set("u_time", 1000 + millis() / 1000.0);
shader(shader);
rect(0,0,width,height);
}
void keyPressed(){
shader = loadShader( name + ".glsl");
saveFrame( name + ".png" );
}
pressing any key will reload the shader an take a snapshot. you can copy paste any of the following snippets (click editor to open the code) click on the preview link to watch a live version.
-
color blocks bright

preview
editor
-
color blocks dark

preview
editor
-
cone

preview
editor
-
black box

preview
editor
-
animated Chladni pattern

preview
editor
-
gooey

preview
editor
-
Klimt

preview
editor
-
monolith

preview
editor
-
panopticon

preview
editor
-
polygons

preview
editor
-
vorogrid

preview
editor
-
waves

preview
editor
the code is not commented and not optimised at all, just putting it here for the sake of sharing. not sure if any of those will make it to the big screen but it was fun to make :)