Closed toxicFork closed 6 years ago
i.e. all of these should be equivalent:
// to be deprecated? <mesh> <boxGeometry width={5} height={5} depth={5} /> <meshBasicMaterial color={0xff0000} /> </mesh>
<mesh geometry={<boxGeometry width={5} height={5} depth={5} />} material={<meshBasicMaterial color={0xff0000} />} />
const myGeometry = new BoxGeometry(5, 5, 5); const myMaterial = new MeshBasicMaterial({ color: 0x00ff00 }); <mesh geometry={myGeometry} material={myMaterial} />
obsolete (also kind of done)
i.e. all of these should be equivalent: