aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.vert
diff options
context:
space:
mode:
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);
}