- Version:
- 1.3.0
Example
// 首先对压缩纹理插件进行初始化
var app = new Tiny.Application({...});
Tiny.plugins.compressedTexture.init(app.renderer);
// 然后在加载器中进行配置
loader.add('./resources/tileset.json', {
metadata: { useCompressedTexture: true }
});
Classes
Methods
-
staticTiny.plugins.compressedTexture.init(renderer)
-
Name Type Description renderer
Tiny.WebGLRenderer 渲染对象
-
staticTiny.plugins.compressedTexture.supportedExtensions() ❯ {array}
-
Returns:
Type Description array - 如 [.pvr]、[.astc]