I would like to apply a filter to the OpenGL cube texture. Face by face. How can I sample just one face of the cube map in the shader? I can't use GL_texture_view_ARB, because I have only Opengl 3.3. Can I use sampler2DArray and bind my cube map to assigned unit?
1 Answers
1
votes
I suppose that you need to create 6 faces of cube map manually, and sample them with different filters. You may need to transform the texture coordinate from a 3D vector to a 2D texcoord for one face, here is the information for doing that: http://www.nvidia.com/object/cube_map_ogl_tutorial.html, please search "Mapping Texture Coordinates to Cube Map Faces" on that web-page.