threepipe
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

KTX2LoadPlugin.md 920B


prev:

text: 'STLLoadPlugin'
link: './STLLoadPlugin'

next:

text: 'KTXLoadPlugin'
link: './KTXLoadPlugin'

KTX2LoadPlugin

ExampleSource CodeAPI Reference

Adds support for loading .ktx2 (Khronos Texture files with asset manager and embedded in glTF files.

KTX2LoadPlugin also adds support for exporting loaded .ktx2 files in glTF files with the KHR_texture_basisu extension.

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

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