threepipe
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
1 год назад
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. ```