Add support for mipmapping on textures.