I use the following code to get equirectangular texture coordinates based on an object\'s position in the world:
Equirec(positionX, positionY, positio