summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/vert/face.vs
diff options
context:
space:
mode:
Diffstat (limited to 'cwd/assets/altcraft/shaders/vert/face.vs')
-rw-r--r--cwd/assets/altcraft/shaders/vert/face.vs4
1 files changed, 1 insertions, 3 deletions
diff --git a/cwd/assets/altcraft/shaders/vert/face.vs b/cwd/assets/altcraft/shaders/vert/face.vs
index a85b2c6..3e6adf7 100644
--- a/cwd/assets/altcraft/shaders/vert/face.vs
+++ b/cwd/assets/altcraft/shaders/vert/face.vs
@@ -8,7 +8,6 @@ in float animation;
in vec3 color;
in vec2 light;
-out vec4 faceWorldPos;
out vec3 faceTextureUv;
out vec3 faceNormal;
out vec3 faceAddColor;
@@ -17,6 +16,7 @@ out vec2 faceLight;
layout (std140) uniform Globals {
mat4 projView;
mat4 proj;
+ mat4 invProj;
mat4 view;
uvec2 viewportSize;
vec4 ssaoKernels[64];
@@ -28,8 +28,6 @@ layout (std140) uniform Globals {
void main() {
gl_Position = projView * vec4(pos[gl_VertexID], 1.0f);
- faceWorldPos = view * vec4(pos[gl_VertexID], 1.0f);
-
faceTextureUv = vec3(uv[gl_VertexID], uvLayer);
faceTextureUv.y -= (uv[2].y - uv[0].y) * trunc(mod(globalTime * 4.0f, animation));