Cellular automata in GLSL+PyQT. Various rulesets can be found by checking out individual commits. http://hut.pm/cellmade_gallery.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
267 B

#version 120
varying vec4 pos;
uniform float offsetx, offsety;
uniform float zoom;
void main() {
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
pos = gl_Position;
pos.x *= zoom;
pos.y *= zoom;
pos.x += offsetx;
pos.y += offsety;
}