aboutsummaryrefslogtreecommitdiffstats
path: root/shaders
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-05-15 22:52:44 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-05-15 22:52:44 -0400
commite786f4a546fd9b08d83cd3e4058a93b26e7ae6ab (patch)
treef4ed6de1b5368c961e9078e9ac003acf188a3279 /shaders
parent0d4504017648b56a565216119a82166deb1f8d5d (diff)
Sword swinging
Diffstat (limited to 'shaders')
-rw-r--r--shaders/world.vert3
1 files changed, 2 insertions, 1 deletions
diff --git a/shaders/world.vert b/shaders/world.vert
index ce7fa5a..10869d6 100644
--- a/shaders/world.vert
+++ b/shaders/world.vert
@@ -3,6 +3,7 @@ attribute vec2 tex_coord;
uniform vec4 tex_color;
uniform mat4 ortho;
+uniform mat4 transform;
varying vec2 texCoord;
varying vec4 color;
@@ -10,5 +11,5 @@ varying vec4 color;
void main(){
color = tex_color;
texCoord = tex_coord;
- gl_Position = ortho * vec4(coord2d.xyz, 1.0);
+ gl_Position = ortho * transform * vec4(coord2d.xyz, 1.0);
}