/** * Route an external asset URL through the proxy so it can be loaded by * three.js loaders (TextureLoader, GLTFLoader, etc.) despite the upstream host * omitting CORS headers. */ export function assetUrl(url: string): string { return `/asset?url=${encodeURIComponent(url)}`; }