From ad9dab8593bbe0536c7e92f2bbc250bda99f8e23 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Sat, 3 Nov 2018 16:20:56 +0000 Subject: [PATCH] Switch alpha test from < to <= to fix weird shadows on actors with 50% chameleon --- files/shaders/shadowcasting_fragment.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/shaders/shadowcasting_fragment.glsl b/files/shaders/shadowcasting_fragment.glsl index 00b8f9aa1a..336bfe4a48 100644 --- a/files/shaders/shadowcasting_fragment.glsl +++ b/files/shaders/shadowcasting_fragment.glsl @@ -16,6 +16,6 @@ void main() gl_FragData[0].a = alphaPassthrough; // Prevent translucent things casting shadow (including the player using an invisibility effect) - if (gl_FragData[0].a < 0.5) + if (gl_FragData[0].a <= 0.5) discard; }