threepipe
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

KTXLoadPlugin.md 868B


prev:

text: 'KTX2LoadPlugin'
link: './KTX2LoadPlugin'

next:

text: 'GLTFMeshOptDecodePlugin'
link: './GLTFMeshOptDecodePlugin'

KTXLoadPlugin

ExampleSource CodeAPI Reference

Adds support for loading .ktx Khronos Texture files.

Note: This plugin only adds support for loading .ktx file, and not exporting them in the bundled .glb. Use .ktx2 files instead of .ktx files for better compression and performance.

import {KTXLoadPlugin} from 'threepipe'
viewer.addPluginSync(new KTXLoadPlugin())

const texture = await viewer.load('file.ktx')