PDA

View Full Version : scale textures without anti aliasing



konami
10-05-2009, 10:33 PM
hello
i would like to scale a texture (generated using glCopyTexSubImage2D()) while avoiding anti-aliasing. Currently i am drawing a simple line on screen- copying that region as a texture and at last scaling the copied texture (using glscale()) just before drawing it. Scaling the texture this way introduces anti-aliasing. any hints/tips on how to avoid this would be of great help.

thanks!

Ilian Dinev
10-05-2009, 11:07 PM
set texture-filtering to nearest.

konami
10-05-2009, 11:51 PM
thank you! that worked.