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 }
});

Classes

BASISLoader
WorkedBASISLoader

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 Fri Jul 09 2021 19:32:27 GMT+0800 (CST)