Skip to content

Commit

Permalink
Fix: Recursion depth input
Browse files Browse the repository at this point in the history
  • Loading branch information
Dampfwalze committed May 1, 2024
1 parent 633d6da commit 5272328
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/window_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ namespace rt

// Output section

ImGui::LabelText("##", "Output");
ImGui::SeparatorText("Output");

// Size
m::uvec2 __size = m_application.outputSize;
Expand Down Expand Up @@ -389,9 +389,11 @@ namespace rt
ImGui::SliderScalar("Tile size", ImGuiDataType_U64, &tileSize.x, &min, &max);
tileSize.y = tileSize.x;

changed |= rtImGui::Drag("Mixing Factor", renderParams.mixingFactor, 0.01f);
changed |= rtImGui::Drag("Mixing factor", renderParams.mixingFactor, 0.01f);

changed |= rtImGui::Drag<int, int>("Recursion Deph", renderParams.recursionDeph, 0.01f, 0);
changed |= ImGui::InputScalar("Recursion depth", ImGuiDataType_U32, &renderParams.recursionDepth, &((const int &)1));

ImGui::SeparatorText("Tone mapping");

if (ImGui::BeginCombo("Tone mapping algorithm", toneMappingAlgorithmToString(renderParams.toneMappingAlgorithm)))
{
Expand Down

0 comments on commit 5272328

Please sign in to comment.