This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| GLSL fragment shader implementing the one line synthesis pattern. | |
| http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html | |
| */ | |
| #extension GL_EXT_gpu_shader4 : enable | |
| const int width = 512; // assumes you're drawing at 512x512 | |
| void main() { | |
| int t = int(gl_FragCoord.y) * width + int(gl_FragCoord.x); | |
| int c = t*5&(t>>7)|t*3&(t*4>>10);// miiro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Provides requestAnimationFrame in a cross browser way. | |
| * @author paulirish / http://paulirish.com/ | |
| */ | |
| if ( !window.requestAnimationFrame ) { | |
| window.requestAnimationFrame = ( function() { | |
| return window.webkitRequestAnimationFrame || |
NewerOlder