clamp to border on ATI

I know it’s possible to clamp_to_border_color with an nVidia extension. But what about on ATI? Is there an equivalent?

I want to use this with shadow maps. When the texture coordinate generated is outside the 0,1 range, I want to be able to control the color. clamp_to_border works beautifully.


GL_ARB_texture_border_clamp is not an NVidia extension…

– Tom

A friend was having some problems with texture performance for which our leading theory was border clamping. Rendering was about the performance you would expect if it was falling back to emulation.


That’s probably because it was falling back to emulation. I don’t know about ATI, but NVidia only accelerates border clamping on GeForce3 and up.

– Tom