TextureSphere: Checking for Position in Texture
in
Programming Questions
•
10 months ago
Hi,
I was experimenting with the Texture Sphere example from the learning section
It shows a globe (world map texture wrapped around sphere)
How would I be able to get an idea for which part of the texture is currently being drawn/on the screen?
For example, say I wanted to have a check in the draw function that was true when a part of the texture (eg. pixels 500 to 550) was being shown. Or when the mouse is over a certain part of the texture.
I am trying to draw some text on the screen when the user moves the mouse over a country area from the world map.
Thanks,
Aidan.
1