Skip to content

Commit

Permalink
fix: models
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Jun 12, 2023
1 parent 9c9e9c6 commit 43920b9
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/models/Bunny.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Command: npx gltfjsx@6.2.3 bunny.glb
*/

import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'

export function Model(props) {
const { nodes, materials } = useGLTF('/bunny.glb')
return (
<group {...props} dispose={null}>
<mesh geometry={nodes.mesh.geometry} material={materials.base} />
</group>
)
}

useGLTF.preload('/bunny.glb')
18 changes: 18 additions & 0 deletions src/models/Suzi.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Command: npx gltfjsx@6.2.3 suzi.glb
*/

import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'

export function Model(props) {
const { nodes, materials } = useGLTF('/suzi.glb')
return (
<group {...props} dispose={null}>
<mesh geometry={nodes.mesh.geometry} material={materials.base} />
</group>
)
}

useGLTF.preload('/suzi.glb')
Binary file modified src/models/bunny.glb
Binary file not shown.
Binary file modified src/models/suzi.glb
Binary file not shown.
112 changes: 112 additions & 0 deletions src/models/suzi.gltf

Large diffs are not rendered by default.

0 comments on commit 43920b9

Please sign in to comment.