I need C++ code that reliably converts a normalized 2D texture coordinate on a square [0, 1] to a 3D vector that maps to a hemisphere, with positive Y.
I think dual-paraboloid code could do this, but I am having trouble finding working examples. This person seems to have encountered the same problem, but they didn't bother to document their solution:
https://gamedev.net/forums/topic/649346-square-hemisphere-mapping/
I need these functions filled in:
Vec3 TexCoordToHemisphere(const float u, const float v)
Vec2 HemisphereToTexCoord(const float dx, const float dy, const float dz)
Thanks in advanced for your any help you can provide.