diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-08 08:47:31 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-08 08:47:31 -0400 |
commit | 6882786999581e2280c870249ae448c744767e73 (patch) | |
tree | 665eb129c395250e3f390d5e86ac8896ac636322 /shaders/world.vert | |
parent | 7110a4ab054341c9f41972b06044853138f526a8 (diff) | |
parent | a978ddfb98734514874231ed28d0395533afa25d (diff) |
merge; lights, xmls
Diffstat (limited to 'shaders/world.vert')
-rw-r--r-- | shaders/world.vert | 6 |
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; } |