GL_IMG_texture_filter_cubic

Supported Hardware

Series5XT, Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 1.x, 2.0, 3.0

Description

OpenGL ES provides two sampling methods available; nearest neighbour or linear filtering, with optional MIP Map sampling modes added to move between differently sized textures when downsampling.

This extension adds an additional, high quality cubic filtering mode, using a Catmull-Rom bicubic filter. Performing this kind of filtering can be done in a shader by using 16 samples, but this can be inefficient. The cubic filter mode exposes an optimized high quality texture sampling using fixed functionality.

This extension affects the way textures are sampled, by modifying the way texels within the same MIP-Map level are sampled and resolved. It does not affect MIP-Map filtering, which is still limited to linear or nearest.

Registry Link

https://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_filter_cubic.txt

Example

glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, CUBIC_MIPMAP_LINEAR_IMG); 
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, CUBIC_IMG);