|
|
|
|
| |
EXT_texture_edge_clamp Extension
|
EXT_texture_edge_clamp
| |
|
Many game developers using OpenGL® are surprised to learn that when using GL_CLAMP with any form of bilinear texture filtering, any bilinear fetches that fall outside of the range of 0.0 to 1.0 cause the border color to participate in the bilinear filter. The EXT_texture_edge_clamp extension causes bilinear fetches outside of this range to be ignored (identical to Direct3D's clamping behavior). For complete details, please refer to the official EXT_texture_edge_clamp spec.
Essentially, using this extension (after confirming it is supported with a call to glGetString(GL_EXTENSIONS) ) is as simple as passing CLAMP_TO_EDGE to TexParameterx().
| |
|
| |
 |
|
|
|