Javascript – How do I get 3D coordinates of clicked point and in fragment shader in WebGL?
I draw a unit sphere of objects (stars, sprites etc), which all have 3D coordinates on the "surface" of that sphere. The camera is at the center of it and I use perspective projection to show the resulting sky chart.…