We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 text was updated successfully, but these errors were encountered:
The ability to explode meshes geometry and materials in the component tree has been requested in this thread
Sorry, something went wrong.
No branches or pull requests
I have generated jsx file by gltfjsx with following result
Is it possible to rewrite above jsx into something like below?
Anyone can help?
The text was updated successfully, but these errors were encountered: