Change mesh UVs without affecting clones #1833
-
I'm trying to change the UV attributes of a mesh, but I need clones of the mesh to keep their own UVs. As you can see in this example, both meshes get their UVs updated: https://codesandbox.io/s/react-three-fiber-edit-mesh-uvs-blvyb?file=/src/App.js I tried cloning the attributes but that didn't work: Also, I can't use a texture offset because then I'd need to clone the texture for each mesh and that causes a significant hitch. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answered by orion_prime at https://discourse.threejs.org/t/change-mesh-uvs-without-affecting-clones/31880/3. Cloning the geometry works. |
Beta Was this translation helpful? Give feedback.
Answered by orion_prime at https://discourse.threejs.org/t/change-mesh-uvs-without-affecting-clones/31880/3.
Cloning the geometry works.