juddydev / Uninoverse

This is 3D model viewer using react three fiber implement texture images
https://uninoverse.com/
4 stars 0 forks source link

Resposive model in r3f #22

Open juddydev opened 4 months ago

juddydev commented 4 months ago

const { viewport } = useThree()

<mesh castShadow receiveShadow geometry={nodes.Decoration001.geometry} material={upperMat} scale={viewport.width/20}