Skip to content

Commit

Permalink
Fixed yet another issue with the soft shadow
Browse files Browse the repository at this point in the history
I'm really not batting a thousand today so far. I had the branches inverted
  • Loading branch information
Manashiku authored Apr 1, 2023
1 parent 2bf1c96 commit d169d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shader.fxsub
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d169d2f

Please sign in to comment.