Skip to content

Commit

Permalink
fix: fix ssgi ambient bounce ignoring AO
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentalimbed committed Dec 12, 2024
1 parent d9de8d8 commit 0cede76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Shaders/AmbientCompositeCS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void SampleSSGI(uint2 pixCoord, float3 normalWS, out half ao, out half3 il)
# endif

float clampedLinAlbedo = min(linAlbedo, 0.5);
DiffuseAmbientRW[dispatchID.xy] = linAlbedo * linDirectionalAmbientColor + clampedLinAlbedo * ssgiIl;
DiffuseAmbientRW[dispatchID.xy] = linAmbient * visibility + clampedLinAlbedo * ssgiIl;
linDiffuseColor += ssgiIl * linAlbedo;
#endif

Expand Down

0 comments on commit 0cede76

Please sign in to comment.