useKtx2
useKtx2(
url):Texture
Defined in: packages/engine/src/views/texture/useKtx2.ts:9
A KTX2 texture for a material’s map, transcoded by three’s Basis
transcoder, which the game’s build serves as it does the Draco decoder.
Suspends while it loads; the texture is cached by URL and shared, so a
change to its wrapping or repeat changes it for every material.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url |
string |
Returns
Section titled “Returns”Texture