Methods
-
Generates a complete mipmap chain for each cubemap face.
Name Type Default Description hint
MipmapHint MipmapHint.DONT_CARE
optional A performance vs. quality hint. Throws:
-
DeveloperError : hint is invalid.
-
DeveloperError : This CubeMap's width must be a power of two to call generateMipmap().
-
DeveloperError : This CubeMap's height must be a power of two to call generateMipmap().
-
DeveloperError : This CubeMap was destroyed, i.e., destroy() was called.
Example:
// Generate mipmaps, and then set the sampler so mipmaps are used for // minification when the cube map is sampled. cubeMap.generateMipmap(); cubeMap.sampler = new Sampler({ minificationFilter : Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR });
-