summaryrefslogtreecommitdiffstats
path: root/cwd/shaders/block.vs
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-17 17:50:36 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:31 +0100
commit94006e599c8d591096b768d1cd0c8b75eb763c45 (patch)
treee1464cabe071e62015a822e1e3f36af524bbc16c /cwd/shaders/block.vs
parent2017-09-16 (diff)
downloadAltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.gz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.bz2
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.lz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.xz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.zst
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.zip
Diffstat (limited to 'cwd/shaders/block.vs')
-rw-r--r--cwd/shaders/block.vs31
1 files changed, 0 insertions, 31 deletions
diff --git a/cwd/shaders/block.vs b/cwd/shaders/block.vs
deleted file mode 100644
index 457d5dd..0000000
--- a/cwd/shaders/block.vs
+++ /dev/null
@@ -1,31 +0,0 @@
-#version 330 core
-layout (location = 0) in vec3 position;
-layout (location = 2) in vec2 UvCoordinates;
-layout (location = 7) in vec2 BlockId;
-layout (location = 8) in mat4 model;
-//layout (location = 12) in something....
-
-out VS_OUT {
- vec2 UvPosition;
- vec3 FragmentPosition;
- flat int Block;
- flat int State;
- vec4 ndcPos;
-} vs_out;
-
-uniform mat4 view;
-uniform mat4 projection;
-uniform float time;
-
-void main()
-{
- vs_out.UvPosition = vec2(UvCoordinates.x,UvCoordinates.y);
- vs_out.FragmentPosition = position;
- vs_out.Block = int(BlockId.x);
- vs_out.State = int(BlockId.y);
-
- vec4 sourcePosition = vec4(position,1.0f);
- vs_out.ndcPos = (projection*view*model) * sourcePosition;
- gl_Position = projection * view * model * sourcePosition;
-
-}