Skip to content

@modoki/engine / index / releaseTexture3D

Function: releaseTexture3D() ​

releaseTexture3D(tex): void

Release one reference taken by loadTexture3D. Disposes the underlying THREE.Texture when the last reference drops. Pass the resolved texture instance (consumers hold it); a texture not from the shared cache is disposed directly, and releasing an already-evicted texture (force-dropped by invalidateTexture) is a safe no-op. Call this — never tex.dispose() — for anything from loadTexture3D.

Parameters ​

tex ​

Texture<unknown> | null | undefined

Returns ​

void

Built with Modoki.