aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.vert
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-06-08 08:41:44 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-06-08 08:41:44 -0400
commit6f23c384bb07db5e0c4bdaf0a0340d0af47475d8 (patch)
treeaa160f1c92352f48dc3339331ab6c87c75ac972c /shaders/world.vert
parent7dd64863c9ca613cf6969442f621849762b20115 (diff)
Lighting!
Diffstat (limited to 'shaders/world.vert')
-rw-r--r--shaders/world.vert6
1 files changed, 3 insertions, 3 deletions
diff --git a/shaders/world.vert b/shaders/world.vert
index df814e6..0d5e65e 100644
--- a/shaders/world.vert
+++ b/shaders/world.vert
@@ -7,11 +7,11 @@ uniform mat4 transform;
varying vec2 texCoord;
varying vec4 color;
-varying vec3 fragCoord;
+varying vec4 fragCoord;
void main(){
color = tex_color;
texCoord = tex_coord;
- gl_Position = ortho * transform * vec4(coord2d.xyz, 1.0);
- fragCoord = vec3(gl_Position.xyz);
+ fragCoord = vec4(coord2d.xyz, 1.0);
+ gl_Position = ortho * transform * fragCoord;
}