Class: CubeMap

CubeMap

new CubeMap(hint)

为每个立方体贴图面生成一个完整的mipmap链。

Name Type Default Description
hint MipmapHint MipmapHint.DONT_CARE 可选

性能vs质量的提示。

Throws:
  • hint 是无效的。

    Type
    DeveloperError
  • 这个CubeMap的宽度必须是2的幂才能调用generateMipmap()。

    Type
    DeveloperError
  • 这个CubeMap的高度必须是2的幂才能调用generateMipmap()。

    Type
    DeveloperError
  • 这个CubeMap被销毁,也就是说,destroy()被调用。

    Type
    DeveloperError
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 : SuperMap3D.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR
});