I want to generate multiple meshes via map or something similar.
But the structure seem a but chunky - <mesh position={0,0,0} > <boxGeometry width={2} height={0.02} depth={0.001} /> <meshBasicMaterial color={0xffffff} /> </mesh>
Could it be done using props, to pass common geometry/material like this - <mesh position={0,0,0} meshBasicMaterial={"some material"}></mesh>?
Hallo!
I want to generate multiple meshes via map or something similar. But the structure seem a but chunky -
<mesh position={0,0,0} > <boxGeometry width={2} height={0.02} depth={0.001} /> <meshBasicMaterial color={0xffffff} /> </mesh>
Could it be done using props, to pass common geometry/material like this -
<mesh position={0,0,0} meshBasicMaterial={"some material"}></mesh>
?