UNPKG

@vctrl/hooks

Version:

vctrl/hooks is a React hooks package designed to simplify 3D model loading and management within React applications. It's part of the vectreal-core ecosystem and is primarily used in the vctrl/viewer React component and the official website application.

8 lines (7 loc) 444 B
import { ModelOptimizer, TextureCompressOptions } from '../../../../core/src/model-optimizer/index.ts'; /** * Performs client-side texture compression using the browser-native encoder. * Delegates directly to optimizer.compressTextures() with the OffscreenCanvas * encoder injected — no network round-trip required. */ export declare const optimizeTextures: (optimizer: ModelOptimizer, options?: TextureCompressOptions) => Promise<void>;