summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/frag/light.fs
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-11 16:56:17 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-11 16:56:17 +0100
commit5721d60db866373dc5718a8af8e63e5377ffd927 (patch)
tree37959ed252108dcefee9f551950fc178e9433369 /cwd/assets/altcraft/shaders/frag/light.fs
parentOptimized GBuffer size (diff)
downloadAltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.gz
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.bz2
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.lz
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.xz
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.zst
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.zip
Diffstat (limited to 'cwd/assets/altcraft/shaders/frag/light.fs')
-rw-r--r--cwd/assets/altcraft/shaders/frag/light.fs6
1 files changed, 2 insertions, 4 deletions
diff --git a/cwd/assets/altcraft/shaders/frag/light.fs b/cwd/assets/altcraft/shaders/frag/light.fs
index 3876388..aa9e04e 100644
--- a/cwd/assets/altcraft/shaders/frag/light.fs
+++ b/cwd/assets/altcraft/shaders/frag/light.fs
@@ -7,7 +7,6 @@ in vec2 uv;
uniform sampler2D depthStencil;
uniform sampler2D color;
uniform sampler2D normal;
-uniform sampler2D addColor;
uniform sampler2D light;
uniform sampler2D ssao;
@@ -37,7 +36,6 @@ void main() {
n += 1.0f;
n /= 2.0f;
- vec4 ac = texture(addColor, uv);
vec4 l = texture(light, uv);
float depth = texture(depthStencil, uv).r;
float d = (1.0f - depth) * 16.0f;
@@ -52,7 +50,7 @@ void main() {
}
lightLevel = clamp(lightLevel, 0.005f, 1.0f);
- vec4 finalColor = vec4(c.rgb * ac.rgb * lightLevel, 1.0f);
+ vec4 finalColor = vec4(c.rgb * lightLevel, 1.0f);
finalColor.rgb = pow(finalColor.rgb, vec3(1.0f / gamma));
@@ -70,7 +68,7 @@ void main() {
fragColor = vec4(RecoverViewWorldPos(uv, depth), 1.0f);
break;
case 4:
- fragColor = ac;
+ fragColor = vec4(0.5f);
break;
case 5:
fragColor = l;