summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-07-05 14:10:59 +0200
committerLaG1924 <lag1924@gmail.com>2021-07-05 14:10:59 +0200
commit40aa26e59d5c806a84eeb3a0ded398393c8ae989 (patch)
tree6a4567dcabf2b09bda8939ae5c74897479372543 /cwd/assets/altcraft/shaders
parentRemoved MacOS unnecessary dependencies (diff)
downloadAltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.tar
AltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.tar.gz
AltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.tar.bz2
AltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.tar.lz
AltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.tar.xz
AltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.tar.zst
AltCraft-40aa26e59d5c806a84eeb3a0ded398393c8ae989.zip
Diffstat (limited to 'cwd/assets/altcraft/shaders')
-rw-r--r--cwd/assets/altcraft/shaders/vert/face.vs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cwd/assets/altcraft/shaders/vert/face.vs b/cwd/assets/altcraft/shaders/vert/face.vs
index 469ea94..93e623d 100644
--- a/cwd/assets/altcraft/shaders/vert/face.vs
+++ b/cwd/assets/altcraft/shaders/vert/face.vs
@@ -23,5 +23,5 @@ void main() {
vs_out.Texture.y -= (uv[2].y - uv[0].y) * trunc(mod(GlobalTime * 4.0f, animation));
float faceLight = clamp(light.x / 15.0 + (light.y / 15.0) * DayTime, MinLightLevel, 1.0);
- vs_out.Color = mix(color.rgb * faceLight, vec3(1,1,1) * faceLight, (color == vec3(0,0,0)));
+ vs_out.Color = mix(color.rgb * faceLight, vec3(1,1,1) * faceLight, float(color == vec3(0,0,0)));
}