|
@@ -2,7 +2,8 @@
|
|
|
import { useTresContext } from '@tresjs/core'
|
|
|
import { useGLTF } from '@tresjs/cientos'
|
|
|
|
|
|
-const { nodes } = await useGLTF('https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb', { draco: true })
|
|
|
+const { nodes } = await useGLTF('https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb',
|
|
|
+ { draco: true })
|
|
|
const model = nodes.Cube
|
|
|
|
|
|
model.position.set(0, 1, 0)
|