diff options
author | LaG1924 <lag1924@gmail.com> | 2021-12-07 17:53:02 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-12-07 17:53:02 +0100 |
commit | 91afb55a58c4b27d0c746e64305dd1d9ad816d94 (patch) | |
tree | cdf8c74b4b0aff8f0df7208b1c48f4b99f951db4 /cwd/assets/altcraft/shaders/frag/light.fs | |
parent | Fixed GalOgl OglState dangling resource (diff) | |
download | AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.gz AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.bz2 AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.lz AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.xz AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.zst AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.zip |
Diffstat (limited to '')
-rw-r--r-- | cwd/assets/altcraft/shaders/frag/light.fs | 4 |
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; } } |