useKtx2
useKtx2(
url):Texture
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. A view’s
hook: a headless mount, which mounts no view, refuses it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url |
string |
Returns
Section titled “Returns”Texture