Skip to content

Commit

Permalink
fix: Effect soft fade
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum committed Nov 18, 2024
1 parent 14c5949 commit 4a7a343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Shaders/Effect.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ PS_OUTPUT main(PS_INPUT input)
float softMul = 1;
# if defined(SOFT)
float depth = TexDepthSamplerEffect.Load(int3(input.Position.xy, 0)).x;
softMul = saturate(-input.TexCoord0.w + LightingInfluence.y / ((1 - depth) * CameraData.z + CameraData.y));
softMul = saturate(-input.TexCoord0.w + LightingInfluence.y / ((1 - depth) * CameraDataEffect.z + CameraDataEffect.y));
# endif

float lightingInfluence = LightingInfluence.x;
Expand Down

0 comments on commit 4a7a343

Please sign in to comment.