Using React-three-fiber, I’m trying to build out a carousel made of plane geometries that I intend to animate. I’m having a bit of trouble figuring out how to pass multiple textures inside my basic mesh material so that each of my three planes have a unique texture (like a carousel of images) Would appreciate any feedback on the best approach!
I made use of react-three-drei’s useTexture:
const [ texture1, texture2, texture3 ] = useTexture([`${strike1}`, `${strike2}`, `${strike3}`]);
return (
<>
<mesh>
<meshBasicMaterial map={} />
...