@dioramajs/assets/three
Loaders for glTF with Draco, Meshopt and KTX2.
import { forget, gltf, join } from '@dioramajs/assets/three'Functions
Constants
gltf | glTF and GLB with the decoders their `extensionsUsed` name, loaded on demand. |
ktx2 | A KTX2 (Basis) texture, transcoded for the formats of the app's renderer, so it waits for `render`. Origin top-left like glTF, and `flipY` can't be set. |
texture | A Texture over the pixels of the `image` entry with the same URL and CORS mode, which a preload or an effect may have decoded already. Origin bottom-left like effects textures. `options.colorSpace` is 'srgb' (default), 'linear' or 'none' for data maps. |