Skip to content

Commit

Permalink
Implement Settings To Control Rendering (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Jun 21, 2022
1 parent cc51bf5 commit 136daca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Editor/Widgets/GUI_Widget_RenderingSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ void Widget_RenderingSettings::Draw() {
ImGui::InputInt2("Depth Map Resolution", DepthMapResolution_);
Apply = ImGui::Button("Apply");

ImGui::InputInt("Max Shadow Updates Per Frame", &SystemUtils_->RendererSettings_->MaxShadowUpdatesPerFrame_);

if (Apply) {
SystemUtils_->RendererSettings_->ShadowMapX_ = DepthMapResolution_[0];
SystemUtils_->RendererSettings_->ShadowMapY_ = DepthMapResolution_[1];
Expand Down

0 comments on commit 136daca

Please sign in to comment.