diff options
Diffstat (limited to 'Shaders/world.vert')
-rw-r--r-- | Shaders/world.vert | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Shaders/world.vert b/Shaders/world.vert index 743ff3d..0760183 100644 --- a/Shaders/world.vert +++ b/Shaders/world.vert @@ -9,9 +9,11 @@ uniform mat4 view; uniform mat4 model; out vec2 texCoord; +out vec4 fragCoord; void main() { texCoord = texc; - gl_Position = projection * view * model * vec4(vertex, 1.0f); + fragCoord = vec4(vertex, 1.0f); + gl_Position = projection * view * model * fragCoord; } |