3 ms·
My WebGL version: http://zokier.net/stuff/webgl-quasicrystal/ http://zokier.net/stuff/webgl-quasicrystal/ Almost literal translation from the Haskell version.
by zokier 15y ago
My WebGL version: http://zokier.net/stuff/webgl-quasicrystal/ http://zokier.net/stuff/webgl-quasicrystal/
Almost literal translation from the Haskell version.
edit: And in amazing technicolor: http://zokier.net/stuff/webgl-quasicrystal/color.html http://zokier.net/stuff/webgl-quasicrystal/color.html
- rogerallen 15y agoW00t! That is awesome.
- pault 15y agoCongratulations on making the first WebGL demo I've seen that didn't turn my macbook into a mobile space heater.
- rogerallen 15y agoWas playing with this a bit a lunchtime... Modifying your main routine to do 3x3 super-sampling reduces flashing/aliasing quite a bit. Check it out. void main(void) { float s = 0.0; for( float xx = 0.0; xx < 1.0; xx += 1.0/3.0) { for( float yy = 0.0; yy < 1.0; yy += 1.0/3.0) { s += combine(vec2(uv.x*xpixels+xx, uv.y*ypixels+yy)); } } gl_FragColor = vec4(vec3(s/9.0), 1.0); } 4x4 is better, but my puny Mac Mini GPU starts to hiccup at that many samples when rendering 1600x800.
- zokier 15y agoNice, updated the colored version with that.