Skip to content

Commit

Permalink
Fixed another SSGI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tippesi committed Jan 8, 2024
1 parent fb07a05 commit 5eb09e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/renderer/IndirectLightRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace Atlas {
.aoDownsampled2x = ssgiAo ? target->GetGIResolution() == RenderResolution::HALF_RES :
target->GetAOResolution() == RenderResolution::HALF_RES,
.reflectionEnabled = reflectionEnabled ? 1 : 0,
.aoStrength = aoEnabled || ssgiAo ? (aoEnabled ? ssgi->aoStrength / sqrt(ssgi->radius) : ao->strength) : 1.0f,
.aoStrength = aoEnabled || ssgiAo ? (aoEnabled ? ao->strength : ssgi->aoStrength / sqrt(ssgi->radius)) : 1.0f,
.specularProbeMipLevels = int32_t(scene->sky.GetProbe() ? scene->sky.GetProbe()->cubemap.image->mipLevels : 1)
};
uniformBuffer.SetData(&uniforms, 0);
Expand Down

0 comments on commit 5eb09e2

Please sign in to comment.