aboutsummaryrefslogtreecommitdiffstats
path: root/Shaders/world.vert
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2019-09-02 15:15:26 -0400
committerClyne Sullivan <clyne@bitgloo.com>2019-09-02 15:15:26 -0400
commit46393662672f2510a40eb6cd5291f99a7ae14e3c (patch)
tree8b11793b474ebc6e7359289bd9e9704d58a7f58a /Shaders/world.vert
parentc1161dc0d8939814abf7da48d03b887c0aead0ff (diff)
parent062a7e2baad74f49f2548793a25f0cf5e4ae6f86 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev2 into save-load
Diffstat (limited to 'Shaders/world.vert')
-rw-r--r--Shaders/world.vert8
1 files changed, 6 insertions, 2 deletions
diff --git a/Shaders/world.vert b/Shaders/world.vert
index 795997a..0760183 100644
--- a/Shaders/world.vert
+++ b/Shaders/world.vert
@@ -2,14 +2,18 @@
//layout(location = 0)in vec3 vertex;
in vec3 vertex;
+in vec2 texc;
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
-//out vec3 texCoord;
+out vec2 texCoord;
+out vec4 fragCoord;
void main()
{
- gl_Position = projection * view * model * vec4(vertex, 1.0f);
+ texCoord = texc;
+ fragCoord = vec4(vertex, 1.0f);
+ gl_Position = projection * view * model * fragCoord;
}