Ben Marshall
Ben Marshall

Reputation: 1764

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?

Upvotes: 5

Views: 9199

Answers (1)

mrdoob
mrdoob

Reputation: 19592

Try playing with this:

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

Upvotes: 16

Related Questions