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

KTXLoadPlugin.md 867B

123456789101112131415161718192021222324252627
  1. ---
  2. prev:
  3. text: 'KTX2LoadPlugin'
  4. link: './KTX2LoadPlugin'
  5. next:
  6. text: 'GLTFMeshOptDecodePlugin'
  7. link: './GLTFMeshOptDecodePlugin'
  8. ---
  9. # KTXLoadPlugin
  10. [Example](https://threepipe.org/examples/#ktx-load/) —
  11. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/import/KTXLoadPlugin.ts) —
  12. [API Reference](https://threepipe.org/docs/classes/KTXLoadPlugin.html)
  13. Adds support for loading .ktx ([Khronos Texture](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/) files.
  14. 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.
  15. ```typescript
  16. import {KTXLoadPlugin} from 'threepipe'
  17. viewer.addPluginSync(new KTXLoadPlugin())
  18. const texture = await viewer.load('file.ktx')
  19. ```