summaryrefslogtreecommitdiff
path: root/themes/src/_shaders/sun.vert
diff options
context:
space:
mode:
Diffstat (limited to 'themes/src/_shaders/sun.vert')
-rw-r--r--themes/src/_shaders/sun.vert13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/src/_shaders/sun.vert b/themes/src/_shaders/sun.vert
index e69de29..76150f0 100644
--- a/themes/src/_shaders/sun.vert
+++ b/themes/src/_shaders/sun.vert
@@ -0,0 +1,13 @@
+
+attribute vec2 position;
+attribute vec4 color;
+attribute mat4 vMatrix;
+uniform mat4 projection;
+uniform mat4 model;
+varying lowp vec4 VertexColor;
+
+void main() {
+ vec4 fragmentPosition = projection * model * vMatrix * vec4(position.x, position.y, 0, 1);
+ gl_Position = fragmentPosition;
+ VertexColor = color;
+}