From d169d2fd40cab12ff30ce9360e094144bab2ebe5 Mon Sep 17 00:00:00 2001 From: Manashiku <46613923+Manashiku@users.noreply.github.com> Date: Sat, 1 Apr 2023 07:58:57 -0700 Subject: [PATCH] Fixed yet another issue with the soft shadow I'm really not batting a thousand today so far. I had the branches inverted --- shader.fxsub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shader.fxsub b/shader.fxsub index 1854ff4..9a59170 100644 --- a/shader.fxsub +++ b/shader.fxsub @@ -153,7 +153,7 @@ float4 ps_model(vs_out i, float vface : VFACE, uniform bool backface_uv2) : COLO shadow = (shadow - cont_shadow_dark) * (cont_shadow_bright + 1.0f) * (float3(cont_shadow_r, cont_shadow_g, cont_shadow_b) + 1.0f); shadow_region.x = saturate(shadow_region.x); float shadow_soft = FACE_SHADOW_SOFTNESS; - #ifdef USE_FACE_SHADOW_MAP + #ifndef USE_FACE_SHADOW_MAP shadow_region.x = step( 0.975f, shadow_region.x); shadow = lerp(shadow, (float3)1.0f, step( 0.975f, shadow_region.x)); #else