diff options
Diffstat (limited to '')
-rw-r--r-- | cwd/shaders/block.vs | 3 |
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; } |