How do I position a texture image in THREE.js

javascript, three.js, webgl

Solution

Try playing with this:

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

Problem

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?

Original source