SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, SC->multisampleLevel);
Where SC->multisampleLevel is the multisample level. I find that values greater than 4 may crash on some machines, so I've made it so that you can only select up to 4xMSAA in the graphics option menu. If you want to go to 8x or 16x, you have to edit settings/video.txt.
And here are the before and after shots:
Get Voxel Turf at http://www.voxelturf.net/.
Thanks! that solved my anti-aliasing problems :)
ReplyDelete