aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.vert
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-05-23 08:40:53 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-05-23 08:40:53 -0400
commitd0fc10be6199fefaa897d6451114c521515dfb83 (patch)
tree2075aaba2345f51cd6799ce89cd2a0d7d6e1fec1 /shaders/world.vert
parenteff05df9465fbe052d028284143a6d3f69876476 (diff)
Something fixed
Diffstat (limited to 'shaders/world.vert')
-rw-r--r--shaders/world.vert2
1 files changed, 2 insertions, 0 deletions
diff --git a/shaders/world.vert b/shaders/world.vert
index 10869d6..df814e6 100644
--- a/shaders/world.vert
+++ b/shaders/world.vert
@@ -7,9 +7,11 @@ uniform mat4 transform;
varying vec2 texCoord;
varying vec4 color;
+varying vec3 fragCoord;
void main(){
color = tex_color;
texCoord = tex_coord;
gl_Position = ortho * transform * vec4(coord2d.xyz, 1.0);
+ fragCoord = vec3(gl_Position.xyz);
}