@modoki/engine / index / loadTexture3D
Function: loadTexture3D()
loadTexture3D(
ref,opts?):Promise<Texture<unknown>>
Load a texture for 3D use (material map / inline primitive). Picks a KTX2 variant (transcoded to the GPU's format) or falls back to the raw source. flipY overrides orientation for non-KTX sources (KTX2 is always bottom-origin = false); used by material textures that follow the GLB flipY=false convention. Refcounted + shared (see the cache note above): release with releaseTexture3D.
Parameters
ref
string
opts?
flipY?
boolean
Returns
Promise<Texture<unknown>>