summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/canvas.glsl
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-02 15:12:50 +0200
committerGitHub <noreply@github.com>2018-10-02 15:12:50 +0200
commit6e619ccb240e81d673fc361a63a8107e0a9858d7 (patch)
treeb809c717dc8d5371610279a5e96ca73e2c09f3f6 /drivers/gles2/shaders/canvas.glsl
parent123931f7eb1585ca47d12049c0525412ee44c845 (diff)
parent9a5d8672107098a6c05459461ec168f4eb01dcc2 (diff)
Merge pull request #22562 from muiroc/gles2_canvas_skip_transform
Uses skip_vertex_transform in GLES2 canvas shader
Diffstat (limited to 'drivers/gles2/shaders/canvas.glsl')
-rw-r--r--drivers/gles2/shaders/canvas.glsl7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/canvas.glsl b/drivers/gles2/shaders/canvas.glsl
index ba69ca9b6e..3db60f7caa 100644
--- a/drivers/gles2/shaders/canvas.glsl
+++ b/drivers/gles2/shaders/canvas.glsl
@@ -89,9 +89,14 @@ VERTEX_SHADER_CODE
/* clang-format on */
}
+#if !defined(SKIP_TRANSFORM_USED)
+ outvec = extra_matrix * outvec;
+ outvec = modelview_matrix * outvec;
+#endif
+
color_interp = color;
- gl_Position = projection_matrix * modelview_matrix * outvec;
+ gl_Position = projection_matrix * outvec;
}
/* clang-format off */