summaryrefslogtreecommitdiffstats
path: root/cwd
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 04:50:40 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 07:37:18 +0200
commitb6dfe86cadaa9e38b4265d69972fb7dff5b73fff (patch)
treef5dcf90197a7b24a70a742c16c4538ae2c3e6fe3 /cwd
parentRefactored Block (diff)
downloadAltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.tar
AltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.tar.gz
AltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.tar.bz2
AltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.tar.lz
AltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.tar.xz
AltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.tar.zst
AltCraft-b6dfe86cadaa9e38b4265d69972fb7dff5b73fff.zip
Diffstat (limited to '')
-rw-r--r--cwd/shaders/face.fs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cwd/shaders/face.fs b/cwd/shaders/face.fs
index 62a2d37..4872f06 100644
--- a/cwd/shaders/face.fs
+++ b/cwd/shaders/face.fs
@@ -10,6 +10,7 @@ in VS_OUT {
uniform sampler2DArray textureAtlas;
uniform vec2 windowSize;
uniform float DayTime;
+uniform float MinLightLevel;
vec3 rgb2hsv(vec3 c)
{
@@ -41,7 +42,7 @@ void main() {
float light = fs_in.Light.x / 15.0;
float skyLight = (fs_in.Light.y / 15.0) * DayTime;
- float faceLight = clamp(light + skyLight,0.2,1.0);
+ float faceLight = clamp(light + skyLight,MinLightLevel,1.0);
color = vec4(color.rgb * faceLight, color.a);
gl_FragColor = color;