Generate mipmaps and use trilinear filtering