summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormuiroc <ian.mario.dev@gmail.com>2018-09-30 17:20:20 +0200
committermuiroc <ian.mario.dev@gmail.com>2018-09-30 18:10:58 +0200
commit9a5d8672107098a6c05459461ec168f4eb01dcc2 (patch)
treed4d9c31925205d68dc9aca11480c47c81fcf23ed
parentce8294986dfc461703da66862ea21cfb8bd6e494 (diff)
Uses skip_transform in gles2 canvas shader
-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 */