glm::uvec2 nearestFrame(const glm::vec3 &d, u32 frames)
The frame taken nearest d, a direction from the object toward the viewer in the object's own space.
glm::vec3 decode(glm::vec2 uv)
The direction a point of the unit square unfolds to.
glm::vec3 frameDirection(u32 i, u32 j, u32 frames)
The direction, from the object toward the camera, that frame (i, j) is taken from.
glm::vec3 pictureUp(const glm::vec3 &d)
The up a picture is taken with from d: world up laid flat across the view.
glm::vec2 encode(glm::vec3 d)
Where on the unit square a direction of the upper hemisphere folds to. Below the horizon is taken as ...