summaryrefslogtreecommitdiff
path: root/themes/src/_shaders/sun.vert
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-08-15 07:29:58 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-08-15 07:29:58 -0400
commit61cd8d99e6a3475eaf2bd28bc24892cf1aae0398 (patch)
tree5d7aa844cb1ef1fccb124b0e5832635ae22fed9b /themes/src/_shaders/sun.vert
parent056d4560f72a9ec281f8df31aa2a7d8241d6adf1 (diff)
WIP on the summer theme
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;
+}