Creates a set of textures for a WebGLTexture object with image dimensions from the original size of the image down to a 1x1 image.
- target [in]
The texture target of the active texture unit.
This method does not return a value.
|gl.INVALID_ENUM||target isn't specified as gl.TEXTURE_2D or gl.TEXTURE_CUBE_MAP.|
A mipmap is used to simulate distance with objects. A high-resolution mipmap image is used for objects that are close to the user. Lower-resolution images are used as the object appears farther away. Using mipmaps improves the quality of rendered textures at the expense of using more memory.
The internal format of a mipmap array is the same as the zero level texture image. Each level is half the resolution of the previous level, until a 1x1 dimension texture image is created.