use-fbx.md 385 B

useFBX

A composable that allows you to easily load glTF models into your TresJS scene.

Usage

import { useFBX } from '@tresjs/cientos'

const model = await useFBX('/models/AkuAku.fbx')

Then is as straightforward as adding the scene to your scene:

<TresCanvas shadows alpha>
  <Suspense>
    <TresMesh v-bind="scene" />
  </Suspense>
</TresCanvas>