threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

KTX2LoadPlugin.md 920B

123456789101112131415161718192021222324252627
  1. ---
  2. prev:
  3. text: 'STLLoadPlugin'
  4. link: './STLLoadPlugin'
  5. next:
  6. text: 'KTXLoadPlugin'
  7. link: './KTXLoadPlugin'
  8. ---
  9. # KTX2LoadPlugin
  10. [Example](https://threepipe.org/examples/#ktx2-load/) —
  11. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/import/KTX2LoadPlugin.ts) —
  12. [API Reference](https://threepipe.org/docs/classes/KTX2LoadPlugin.html)
  13. Adds support for loading .ktx2 ([Khronos Texture](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/) files with asset manager and embedded in glTF files.
  14. KTX2LoadPlugin also adds support for exporting loaded .ktx2 files in glTF files with the [KHR_texture_basisu](https://www.khronos.org/registry/KHR/textures/2.0-extensions/KHR_texture_basisu/) extension.
  15. ```typescript
  16. import {KTX2LoadPlugin} from 'threepipe'
  17. viewer.addPluginSync(new KTX2LoadPlugin())
  18. const texture = await viewer.load('file.ktx2')
  19. ```