Skip to content

Commit

Permalink
small RTAO/SSGI AO tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
X0nk committed Aug 3, 2023
1 parent dc51a78 commit a4df4d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shaders/composite1.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,7 @@ void ApplySSRT(inout vec3 lighting, vec3 normal,vec2 noise,vec3 fragpos, vec2 li
#else
if(isGrass) rayDir.y = clamp(rayDir.y + 0.25,-1,1);

float SkyLightDir = rayDir.y > 0.0 ? 1.0 : max(rayDir.y,0.25); // the positons where the occlusion happens

skycontribution = skylightcolor * SkyLightDir + torchlight;
skycontribution = skylightcolor * 2 * (max(rayDir.y,0.0)*0.9+0.1) + torchlight;

#if indirect_effect == 4
skycontribution2 = skylightcolor + torchlight;
Expand Down

0 comments on commit a4df4d3

Please sign in to comment.