summaryrefslogtreecommitdiffstats
path: root/cwd/shaders/block.vs
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-06-07 16:21:39 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-06-07 16:21:39 +0200
commitb192dcec842cf043ae936c446bb252259b415ab5 (patch)
treed7c54847a22a63899eb515a67a3a74ae4ad90d38 /cwd/shaders/block.vs
parent2017-05-31 (diff)
downloadAltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar
AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.gz
AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.bz2
AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.lz
AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.xz
AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.zst
AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.zip
Diffstat (limited to 'cwd/shaders/block.vs')
-rw-r--r--cwd/shaders/block.vs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cwd/shaders/block.vs b/cwd/shaders/block.vs
index 09d5b3f..e8756c0 100644
--- a/cwd/shaders/block.vs
+++ b/cwd/shaders/block.vs
@@ -3,7 +3,7 @@ layout (location = 0) in vec3 position;
layout (location = 2) in vec2 UvCoordinates;
out vec2 UvPosition;
-
+out vec3 FragmentPosition;
uniform mat4 view;
uniform mat4 projection;
@@ -14,4 +14,5 @@ void main()
{
gl_Position = projection * view * model * vec4(position, 1.0f);
UvPosition = vec2(UvCoordinates.x,UvCoordinates.y);
+ FragmentPosition = position;
}