View Full Version : Displaying an image as its mirror image

03-19-2014, 10:16 AM
Suppose when we display image, we paste the image along the texture coordinates i.e. 00, 01, 11, 10. Now how to map the texture so that image is displayed as mirror image in a plane.
Thanks in advance.

03-19-2014, 12:22 PM
Two possibilities:
Use negative texture coordinates, so 00, 01, -11, -10. For this, you have to activate the GL_REPEAT parameter, otherwise the image will be plain black as valid coordinates have to be in range [0..1] and GL_CLAMP doesn't transform the coordinates.
Assign the texture coordinates to other vertices, so the top left point won't get 01 but 11. This will flip the image as well.