Reputation: 224
When we create cubemap in OpenGl, we need six images and with these, we can create cubemap. (simply put, GL_TEXTURE_CUBE_MAP)
At first, I guessed there was similar parameter such as GL_TEXTURE_SHPHERE_MAP, but I could't find any thing related to it.
I wonder how we can create spherical environment map with 360 degree images?
(If you know the site about that, please link for me)
Upvotes: 1
Views: 631
Reputation: 162164
I wonder how we can create spherical environment map with 360 degree images?
Load the image as a regular 2D texture and do spherical texture coordinate mapping in the shader.
Upvotes: 2