diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-08-15 07:29:58 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-08-15 07:29:58 -0400 |
commit | 61cd8d99e6a3475eaf2bd28bc24892cf1aae0398 (patch) | |
tree | 5d7aa844cb1ef1fccb124b0e5832635ae22fed9b /themes/src/_shaders/sun.vert | |
parent | 056d4560f72a9ec281f8df31aa2a7d8241d6adf1 (diff) |
WIP on the summer theme
Diffstat (limited to 'themes/src/_shaders/sun.vert')
-rw-r--r-- | themes/src/_shaders/sun.vert | 13 |
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; +} |