perf: compress GLBs 75%, add Draco decoder, loading spinner for attire
This commit is contained in:
@@ -7,6 +7,9 @@ import * as THREE from 'three';
|
||||
import { useConfigStore } from '@/store/useConfigStore';
|
||||
import { personaStore, usePersonaStore } from '@/store/usePersonaStore';
|
||||
|
||||
// Configure Draco decoder so compressed .glb files load correctly
|
||||
useGLTF.setDecoderPath('/draco/');
|
||||
|
||||
const STATIC_ATTIRE_GLB: Record<string, string> = {
|
||||
'emarati-kandura': '/Kandoura.glb',
|
||||
'industrial-vest': '/Vest.glb',
|
||||
|
||||
Reference in New Issue
Block a user