summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/frag/sky.fs
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-11 16:44:40 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-11 16:44:40 +0100
commitbe808181b2c84358b232e4a32d1a6dd9dd6659ed (patch)
tree5a0089532532a52fc307d836e2b1e90eced06779 /cwd/assets/altcraft/shaders/frag/sky.fs
parentRemoved unnecessary framebuffers copying (diff)
downloadAltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.tar
AltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.tar.gz
AltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.tar.bz2
AltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.tar.lz
AltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.tar.xz
AltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.tar.zst
AltCraft-be808181b2c84358b232e4a32d1a6dd9dd6659ed.zip
Diffstat (limited to 'cwd/assets/altcraft/shaders/frag/sky.fs')
-rw-r--r--cwd/assets/altcraft/shaders/frag/sky.fs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cwd/assets/altcraft/shaders/frag/sky.fs b/cwd/assets/altcraft/shaders/frag/sky.fs
index dc97440..f3830b8 100644
--- a/cwd/assets/altcraft/shaders/frag/sky.fs
+++ b/cwd/assets/altcraft/shaders/frag/sky.fs
@@ -4,13 +4,13 @@ in vec3 facePos;
layout (location = 0) out vec4 color;
layout (location = 1) out vec4 normal;
-layout (location = 2) out vec4 worldPos;
-layout (location = 3) out vec4 addColor;
-layout (location = 4) out vec4 light;
+layout (location = 2) out vec4 addColor;
+layout (location = 3) out vec4 light;
layout (std140) uniform Globals {
mat4 projView;
mat4 proj;
+ mat4 invProj;
mat4 view;
uvec2 viewportSize;
vec4 ssaoKernels[64];
@@ -65,7 +65,7 @@ void main() {
color += vec4(Sun().rgb, 1.0f);
color += vec4(Moon().rgb, 1.0f);
normal = vec4(0.0f, 0.0f, 0.0f, 1.0f);
- worldPos = vec4(0.0f, 0.0f, 0.0f, 1.0f);
addColor = vec4(1.0f);
light = vec4(1.0f, 1.0f, 0.0f, 1.0f);
+ gl_FragDepth = 1.0f;
}