diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2021-07-06 15:00:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 15:00:50 +0200 |
commit | 4354b1b85b92e378ac0ea7c542edc033c6abdaff (patch) | |
tree | 4e2fa2a75f76778b1982a84c5a17d8d8744dd078 /cwd/assets/altcraft/shaders/vert | |
parent | Merge pull request #66 from LaG1924/ftr/more-rmlui (diff) | |
parent | Added disconnect messages (diff) | |
download | AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.gz AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.bz2 AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.lz AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.xz AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.tar.zst AltCraft-4354b1b85b92e378ac0ea7c542edc033c6abdaff.zip |
Diffstat (limited to 'cwd/assets/altcraft/shaders/vert')
-rw-r--r-- | cwd/assets/altcraft/shaders/vert/face.vs | 2 |
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))); } |