October 2018
Intermediate to advanced
500 pages
12h 40m
English
The texture LOD parameter is used to determine which mipmap to fetch from. This allows for mipmap streaming, that is, loading only the mipmap levels currently needed. This is very useful for a WebGL environment, where textures are downloaded via a network.
gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MIN_LOD, 0.0);
gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MAX_LOD, 10.0);