mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-29 10:19:18 -05:00
improve wording slightly (?)
@ -110,4 +110,4 @@ The above code will draw a texture flipped in the X axis.
|
|||||||
# Why is my render texture upside down?
|
# Why is my render texture upside down?
|
||||||
|
|
||||||
All textures in OpenGL by default have the origin in the lower-left corner, while the screen origin is in the upper left. When you load a normal texture, raylib flips the image data for you, however this cannot be done with a render texture.
|
All textures in OpenGL by default have the origin in the lower-left corner, while the screen origin is in the upper left. When you load a normal texture, raylib flips the image data for you, however this cannot be done with a render texture.
|
||||||
The solution is to flip your texture vertically when drawing, see the above paragraph for how to do this.
|
The solution is to draw your render texture vertically flipped, see the above paragraph for how to do this.
|
||||||
|
|||||||
Reference in New Issue
Block a user