Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 785
Ben Marshall Avatar asked Dec 20 '22 19:12

Ben Marshall


1 Answers

Try playing with this:

texture.offset.x = 0.5; // 0.0 - 1.0
texture.offset.y = 0.5; // 0.0 - 1.0
like image 168
mrdoob Avatar answered Dec 23 '22 09:12

mrdoob