aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.vert
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-06-08 08:47:31 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-06-08 08:47:31 -0400
commit6882786999581e2280c870249ae448c744767e73 (patch)
tree665eb129c395250e3f390d5e86ac8896ac636322 /shaders/world.vert
parent7110a4ab054341c9f41972b06044853138f526a8 (diff)
parenta978ddfb98734514874231ed28d0395533afa25d (diff)
merge; lights, xmls
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;
}