I have a cube map texture in OpenGL, and I'd like to render one face of the cube to a single quad. What texture coordinates should I use? To be concrete, what coordinates should I pick to render the "GL_TEXTURE_CUBE_MAP_POSITIVE_X" face? Or if I shouldn't explicitly define coordinates, how should I use texture coordinate generation in this instance?
Asked
Active
Viewed 945 times
1 Answers
4
The texture coordinates you want are (1, +/-1, +/-1)

datenwolf
- 159,371
- 13
- 185
- 298
-
Thanks, this was a good sanity check for me because I wasn't sure if my cube map was messed up or my rendering was... looks like the former, unfortunately. – Carl Veazey Dec 19 '11 at 19:48
-
How exactly is this done? Using a vec3 for texture co-ordinates in the shader? – livin_amuk Jul 23 '16 at 14:40