4 ms·
Was 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
by rogerallen 15y ago
Was 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.