summaryrefslogtreecommitdiff
path: root/drivers/gles3/shaders/tonemap.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gles3/shaders/tonemap.glsl')
-rw-r--r--drivers/gles3/shaders/tonemap.glsl5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gles3/shaders/tonemap.glsl b/drivers/gles3/shaders/tonemap.glsl
index b2615fa29c..3ce2edf4e9 100644
--- a/drivers/gles3/shaders/tonemap.glsl
+++ b/drivers/gles3/shaders/tonemap.glsl
@@ -6,12 +6,13 @@ layout(location=4) in vec2 uv_in;
out vec2 uv_interp;
-
-
void main() {
gl_Position = vertex_attrib;
uv_interp = uv_in;
+#ifdef V_FLIP
+ uv_interp.y = 1.0-uv_interp.y;
+#endif
}