surfel gi improvements, added boost setting
This commit is contained in:
@@ -84,6 +84,16 @@ void RendererWindow::Create(EditorComponent* editor)
|
||||
});
|
||||
AddWidget(&surfelGIDebugComboBox);
|
||||
|
||||
surfelGIBoostSlider.Create(1, 10, 1.0f, 1.0f, "Surfel GI Boost: ");
|
||||
surfelGIBoostSlider.SetTooltip("Adjust the strength of surfel GI.\nNote that values other than 1.0 will cause mismatch with path tracing reference");
|
||||
surfelGIBoostSlider.SetSize(XMFLOAT2(100, itemheight));
|
||||
surfelGIBoostSlider.SetPos(XMFLOAT2(x, y += step));
|
||||
surfelGIBoostSlider.SetValue(wi::renderer::GetSurfelGIBoost());
|
||||
surfelGIBoostSlider.OnSlide([editor](wi::gui::EventArgs args) {
|
||||
wi::renderer::SetSurfelGIBoost(args.fValue);
|
||||
});
|
||||
AddWidget(&surfelGIBoostSlider);
|
||||
|
||||
voxelRadianceCheckBox.Create("Voxel GI: ");
|
||||
voxelRadianceCheckBox.SetTooltip("Toggle voxel Global Illumination computation.");
|
||||
voxelRadianceCheckBox.SetPos(XMFLOAT2(x, y += step));
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
wi::gui::Slider resolutionScaleSlider;
|
||||
wi::gui::CheckBox surfelGICheckBox;
|
||||
wi::gui::ComboBox surfelGIDebugComboBox;
|
||||
wi::gui::Slider surfelGIBoostSlider;
|
||||
wi::gui::CheckBox voxelRadianceCheckBox;
|
||||
wi::gui::CheckBox voxelRadianceDebugCheckBox;
|
||||
wi::gui::CheckBox voxelRadianceSecondaryBounceCheckBox;
|
||||
|
||||
Reference in New Issue
Block a user