react-three-renderer icon indicating copy to clipboard operation
react-three-renderer copied to clipboard

Can't add more than one material to mesh component

Open imakatman opened this issue 8 years ago • 1 comments

I need to add multiple meshBasicMaterials into my mesh in order to render a boxGeometry with a different meshBasicMaterial for each segment. Like this example: https://threejs.org/examples/?q=panorama#canvas_geometry_panorama

Is this something that we should be able to do once you build the MeshFaceMaterial?

Thanks a lot, your react adaption of THREEjs is great! :)

imakatman avatar Jul 18 '17 17:07 imakatman

check out #67 - the maintainer posted a workaround. there's no meshfacematerial component yet, so you have to do things the 'three way' instead of the 'react way' (that's my rudimentary understanding). i just got a version of it working myself, i could post that code too if it's needed 👍

ettubrutesbro avatar Jul 20 '17 07:07 ettubrutesbro