ssct: decouple shadow distance from sample count

This commit is contained in:
Pixelflinger
2020-09-30 18:18:35 -07:00
committed by Mathias Agopian
parent 5fae33bde5
commit 8b3caeffb9
11 changed files with 82 additions and 77 deletions

View File

@@ -314,7 +314,7 @@ void SimpleViewer::updateUserInterface() {
int sampleCount = ssao.ssct.sampleCount;
ImGui::Checkbox("Enabled##dls", &ssao.ssct.enabled);
ImGui::SliderFloat("Cone angle", &ssao.ssct.lightConeRad, 0.0f, (float)M_PI_2);
ImGui::SliderFloat("Start dist", &ssao.ssct.startTraceDistance, 0.0f, 1.0f);
ImGui::SliderFloat("Shadow Distance", &ssao.ssct.shadowDistance, 0.0f, 10.0f);
ImGui::SliderFloat("Contact dist max", &ssao.ssct.contactDistanceMax, 0.0f, 100.0f);
ImGui::SliderFloat("Intensity##dls", &ssao.ssct.intensity, 0.0f, 10.0f);
ImGui::SliderFloat("Depth bias", &ssao.ssct.depthBias, 0.0f, 1.0f);