PDA

View Full Version : MSAA: sampling artifacts with alpha textures



rexguo
08-25-2009, 01:20 AM
http://lh6.ggpht.com/_7izYvj-RJLg/SpObkVDZrwI/AAAAAAAAAHU/V2I2jBJAgps/s800/Picture%201.png

How do I deal with the artifact around the
edges of the polygon? The problem is caused
by 2 mutually exclusive requirements:

1. MSAA
2. *Tiled* alpha texture (i.e. cannot be clamped to edge)

The texture is a 2x2 image tiled twice, and
using NEAREST filtering for sharp edges.

Thanks in advance for any ideas!

.rex

martinsm
08-25-2009, 02:54 AM
Are you using shader to render polygon?
Try using centroid interpolation for texcoords: http://www.opengl.org/pipeline/article/vol003_6/