<script setup lang="ts">
import { useGLTF } from '@tresjs/cientos'
const props = defineProps(['modelUrl'])
const { scene } = await useGLTF(props.modelUrl)
console.log(scene, props.modelUrl)
</script>
<template>
    <TresGroup>
        <TresGroup :position="[2, 2, 2]">
            <TresBoxGeometry :args="[1, 1, 1]" />
            <TresMeshNormalMaterial />
        </TresGroup>
        <primitive :object="scene" />
    </TresGroup>
</template>