Namespace: compressedTexture

Tiny.plugins. compressedTexture

Version:
  • 1.3.0

Example

// 首先对压缩纹理插件进行初始化
var app = new Tiny.Application({...});
Tiny.plugins.compressedTexture.init(app.renderer);

// 然后在加载器中进行配置
loader.add('./resources/tileset.json', {
 metadata: { useCompressedTexture: true }
});

Methods

staticTiny.plugins.compressedTexture.init(renderer)

Name Type Description
renderer Tiny.WebGLRenderer

渲染对象

staticTiny.plugins.compressedTexture.supportedExtensions(){array}

Returns:
Type Description
array
  • 如 [.pvr]、[.astc]
Documentation generated by JSDoc 3.4.3 on Mon May 25 2020 18:08:47 GMT+0800 (CST)