summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-27 15:03:36 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-27 15:03:36 +0100
commit7f3ed11618df0cce5c3d799e0b3f4c009714f2c3 (patch)
tree8827c3ba45b52cdda6524df70ce58c8ca1c55e79 /cwd/assets/altcraft
parentAdded PostProcess class (diff)
downloadAltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.gz
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.bz2
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.lz
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.xz
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.zst
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.zip
Diffstat (limited to 'cwd/assets/altcraft')
-rw-r--r--cwd/assets/altcraft/shaders/vert/face.vs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cwd/assets/altcraft/shaders/vert/face.vs b/cwd/assets/altcraft/shaders/vert/face.vs
index ac92831..d73e164 100644
--- a/cwd/assets/altcraft/shaders/vert/face.vs
+++ b/cwd/assets/altcraft/shaders/vert/face.vs
@@ -13,9 +13,12 @@ out vec3 faceNormal;
out vec3 faceAddColor;
out vec2 faceLight;
-uniform mat4 projView;
uniform float GlobalTime;
+layout (std140) uniform Globals {
+ mat4 projView;
+};
+
void main() {
gl_Position = projView * vec4(position[gl_VertexID], 1.0f);