summaryrefslogtreecommitdiff
path: root/_shared/2d/shaders/orthographic.vert
diff options
context:
space:
mode:
Diffstat (limited to '_shared/2d/shaders/orthographic.vert')
-rw-r--r--_shared/2d/shaders/orthographic.vert13
1 files changed, 13 insertions, 0 deletions
diff --git a/_shared/2d/shaders/orthographic.vert b/_shared/2d/shaders/orthographic.vert
new file mode 100644
index 0000000..0356f9c
--- /dev/null
+++ b/_shared/2d/shaders/orthographic.vert
@@ -0,0 +1,13 @@
+attribute vec2 position;
+attribute vec4 color;
+
+uniform mat4 projection;
+uniform mat4 model;
+
+varying lowp vec4 VertexColor;
+
+void main() {
+ vec4 fragmentPosition = projection * model * vec4(position, 1, 1);
+ gl_Position = fragmentPosition;
+ VertexColor = color;
+} \ No newline at end of file