two meshes, same texture, different offset?

不打扰是莪最后的温柔 提交于 2019-12-05 09:34:57

What you say is true. Instead of adjusting the texture offsets, adjust the face vertex UVs of the geometry.

EDIT: There is another solution more in line with what you want to do. You can clone a texture like so:

var tex = new THREE.Texture.clone();

Cloning a texture will result in the loaded image being reused, and the new texture can have it's own offsets. Do not try to clone the texture until the image loads, however.

With this alternate approach, you do not have to adjust UVs, and you do not have to load an image more than once.

three.js r.58

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!