More improvements to SSAO
- we add an 'intensity' parameter that allows to control the strength of the AO effect. This is useful for aesthetic reasons. - the default intensity is now 2x that of before this change, which makes the intensity parameter match AO papers this implementation is inspired of. - bias is now z-dependent, which reduces some self shadowing wrt the depth.
This commit is contained in:
committed by
Mathias Agopian
parent
5583dc26f9
commit
0da551c7fd
@@ -347,7 +347,8 @@ static void gui(filament::Engine* engine, filament::View*) {
|
||||
DebugRegistry& debug = engine->getDebugRegistry();
|
||||
ImGui::Checkbox("enabled###ssao", ¶ms.ssao);
|
||||
ImGui::SliderFloat("radius", ¶ms.ssaoOptions.radius, 0.05f, 5.0f);
|
||||
ImGui::SliderFloat("bias", ¶ms.ssaoOptions.bias, 0.0f, 0.1f);
|
||||
ImGui::SliderFloat("bias", ¶ms.ssaoOptions.bias, 0.0f, 0.01f, "%.6f");
|
||||
ImGui::SliderFloat("intensity", ¶ms.ssaoOptions.intensity, 0.0f, 10.0f);
|
||||
ImGui::SliderFloat("power", ¶ms.ssaoOptions.power, 0.0f, 1.0f);
|
||||
}
|
||||
ImGui::Unindent();
|
||||
|
||||
Reference in New Issue
Block a user