![]() | TextureMinificationFilter Property |
Namespace: Ooogles
A mipmap is an ordered set of arrays representing the same image at progressively lower resolutions. If the texture has dimensions W × H, there are Floor(Log2(Max(W, H)) + 1) mipmap levels. The first mipmap level is the original texture, with dimensions W × H. Each subsequent mipmap level has half the dimensions of the previous level, until the final mipmap is reached, which has dimension 1 × 1.
To define the mipmap levels, call UploadT(glPixelFormat, Int32, Int32, T, Int32, glPixelDataType, Int32), UploadCompressedT(Int32, Int32, Int32, T, Int32, Int32) or Copy(glPixelFormat, Int32, Int32, Int32, Int32, Int32, Int32) with the level argument indicating the order of the mipmaps. Level 0 is the original texture; level Floor(Log2(Max(W, H))) is the final 1 × 1 mipmap.
As more texture elements are sampled in the minification process, fewer aliasing artifacts will be apparent. While the Nearest and Linear minification functions can be faster than the other four, they sample only one or four texture elements to determine the texture value of the pixel being rendered and can produce moire patterns or ragged transitions. The initial value of the minification filter is NearestMipmapLinear.
Note: in DEBUG mode with assertions enabled, an error will be logged to the debug console if this texture is not bound.
OpenGL API: glTexParameteri(GL_TEXTURE_MIN_FILTER), glGetTexParameteriv(GL_TEXTURE_MIN_FILTER)