summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/frag/light.fs
diff options
context:
space:
mode:
Diffstat (limited to 'cwd/assets/altcraft/shaders/frag/light.fs')
-rw-r--r--cwd/assets/altcraft/shaders/frag/light.fs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cwd/assets/altcraft/shaders/frag/light.fs b/cwd/assets/altcraft/shaders/frag/light.fs
index d1763f9..c7e7254 100644
--- a/cwd/assets/altcraft/shaders/frag/light.fs
+++ b/cwd/assets/altcraft/shaders/frag/light.fs
@@ -43,7 +43,7 @@ void main() {
float lightLevel = clamp(faceLight + skyLight * dayTime, 0.01f, 1.0f);
lightLevel = pow(lightLevel, 3);
if (applySsao) {
- lightLevel *= (1.0f - s.r);
+ lightLevel *= pow(s.r, 2);
}
lightLevel = clamp(lightLevel, 0.005f, 1.0f);
@@ -74,7 +74,7 @@ void main() {
fragColor = vec4(vec3(d), 1.0f);
break;
case 7:
- fragColor = s;
+ fragColor = vec4(pow(s.r, 2));
break;
}
}