3d tooltip
This commit is contained in:
@@ -21,12 +21,17 @@ export default function Home() {
|
||||
setError(errorMessage)
|
||||
}
|
||||
|
||||
const handleSelectModel = (path: string) => {
|
||||
console.log('Model selected:', path)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="relative h-screen">
|
||||
<ModelViewer
|
||||
modelPath="/models/your_model_name.gltf" //пока что передаем модель через navigation page
|
||||
onModelLoaded={handleModelLoaded}
|
||||
onError={handleError}
|
||||
onSelectModel={handleSelectModel}
|
||||
/>
|
||||
|
||||
{error && (
|
||||
|
||||
Reference in New Issue
Block a user