JPG_EQUIRECTANGULAR loads a JPG containing an equirectangular environment map and converts it to a cube map for use in shaders. Yields a TextureCube object.
TextureCube