EquirectMap

camera.getDirection() is great, any way to figure out the xy coords of the skybox EquirectMap that the camera is looking at?

Welcome!

Why do you need the xy coordinates of the skybox texture?

The formulas are in “Optics.glsllib”:

1 Like

I was looking up at the sky and I wondered, “what is the name of that star right there?”

Oh cool man thanks, I didn’t even think to look in there just did a bunch of searches with the magnifying glass and google.

1 Like

I had to dig pretty deep to find that code.