Skip to content

Commit

Permalink
fix ssao spots in dense fog
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham committed Nov 23, 2024
1 parent 7346ce8 commit f1a570e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions data/Hlms/Pbs/Any/SR3_Fog_piece_ps.any
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
@property( hlms_gen_normals_gbuffer )
//** fog fade for ssao
@property( hlms_fog && !sky )
outPs_fog = fogWeight * heightMul * fluidHeight;
outPs_fog = fogWeight * heightMul;
// outPs_fog *= fluidHeight; //bad
outPs_fog = lerp(
lerp ( 0.0, outPs_fog, fluidDist ),
outPs_fog, fluidHeight ); // in fluid

@else
outPs_fog = 0.0;
outPs_fog = 1.0;
@end
@end
@end
Expand Down

0 comments on commit f1a570e

Please sign in to comment.