Open shunmian opened 7 months ago
I have generated jsx file by gltfjsx with following result
export function Model(props) { const { nodes, materials } = useGLTF('./models/Common/Model.glb') return ( <group {...props} dispose={null}> <mesh castShadow geometry={nodes.001.geometry} material={materials.001} /> </group> ) }
Is it possible to rewrite above jsx into something like below?
export function Model(props) { const { nodes, materials } = useGLTF('./models/Common/Model.glb') return ( <group {...props} dispose={null}> <mesh> <SomeGeometry buffer={nodes.001.geometry} /> <SomeMaterial buffer={materials.001} </mesh> </group> ) }
Anyone can help?
The ability to explode meshes geometry and materials in the component tree has been requested in this thread
I have generated jsx file by gltfjsx with following result
Is it possible to rewrite above jsx into something like below?
Anyone can help?