VSM blur is now specified as a width in pixels

This is a lot more intuitive than using the standard deviation.
This commit is contained in:
Mathias Agopian
2021-06-24 22:27:57 -07:00
committed by Mathias Agopian
parent ef6199a792
commit 61bf472426
8 changed files with 40 additions and 45 deletions

View File

@@ -688,7 +688,7 @@ void SimpleViewer::updateUserInterface() {
ImGui::SliderInt("VSM anisotropy", &vsmAnisotropy, 0, 3, label);
mSettings.view.vsmShadowOptions.anisotropy = vsmAnisotropy;
ImGui::Checkbox("VSM mipmapping", &mSettings.view.vsmShadowOptions.mipmapping);
ImGui::SliderFloat("VSM blur", &light.shadowOptions.vsm.blurStandardDeviation, 0.0, 21.0f);
ImGui::SliderFloat("VSM blur", &light.shadowOptions.vsm.blurWidth, 0.0f, 125.0f);
// These are not very useful in practice (defaults are good), but we keep them here for debugging
//ImGui::SliderFloat("VSM exponent", &mSettings.view.vsmShadowOptions.exponent, 0.0, 6.0f);