简体   繁体   中英

How do I position a texture image in THREE.js

I have a sphere with an earth texture on it. I can plot exact points on the sphere but need to adjust the position of the texture (rotate it) to match where the coordinates will be placed. Is there a way to rotate the texture on a sphere?

Try playing with this:

texture.offset.x = 0.5; // 0.0 - 1.0
texture.offset.y = 0.5; // 0.0 - 1.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM