|
@@ -39,7 +39,7 @@ Notice in the example above that we are using the `Suspense` component to wrap t
|
|
|
|
|
|
## Using `useGLTF`
|
|
|
|
|
|
-A more convenient way of loading models is using the `useGLTF` composable available from [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package.
|
|
|
+A more convenient way of loading models is using the `useGLTF` composable available from the [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package.
|
|
|
|
|
|
```ts
|
|
|
import { useGLTF } from '@tresjs/cientos'
|
|
@@ -81,7 +81,7 @@ const { scene, nodes, animations, materials } = await useGLTF('/models/AkuAku.gl
|
|
|
|
|
|
## Using `GLTFModel`
|
|
|
|
|
|
-The `GLTFModel` component is a wrapper around `useGLTF` that's available from [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package.
|
|
|
+The `GLTFModel` component is a wrapper around `useGLTF` that's available from the [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package.
|
|
|
|
|
|
```vue{2,9}
|
|
|
<script setup lang="ts">
|
|
@@ -103,7 +103,7 @@ This particular approach is more straightforward but gives you less control over
|
|
|
|
|
|
## useFBX
|
|
|
|
|
|
-The `useFBX` composable is available from [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package.
|
|
|
+The `useFBX` composable is available from the [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package.
|
|
|
|
|
|
```ts
|
|
|
import { useFBX } from '@tresjs/cientos'
|
|
@@ -123,7 +123,7 @@ Then is as straightforward as adding the scene to your scene:
|
|
|
|
|
|
## FBXModel
|
|
|
|
|
|
-The `FBXModel` component is a wrapper around `useFBX` that's available from [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package. It's similar usage to `GLTFModel`:
|
|
|
+The `FBXModel` component is a wrapper around `useFBX` that's available from the [@tresjs/cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package. It's similar usage to `GLTFModel`:
|
|
|
|
|
|
```vue{2,9}
|
|
|
<script setup lang="ts">
|