add about page model loading

This commit is contained in:
DefectingCat
2023-09-18 11:11:02 +08:00
parent a67c419f77
commit d7c6362bb6
3 changed files with 22 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const CatModel = () => {
GLTFLoader,
'./models/just_a_hungry_cat/modelDraco.gltf',
(loader) => {
toggleLoading(true);
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath('./libs/draco/');
loader.setDRACOLoader(dracoLoader);