Skip to content

Commit

Permalink
add button
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed May 24, 2024
1 parent 9dfe375 commit 0dd9ce0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/films/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ class DisplayInstance final : public Film::Instance {
{
ImGui::Text("Display FPS: %.2f", ImGui::GetIO().Framerate);
ImGui::SliderFloat("Exposure", &_exposure, -10.f, 10.f);
ImGui::SameLine();
if (ImGui::Button("Reset")) { _exposure = 0.f; }
constexpr const char *const tone_mapping_names[] = {"None", "Uncharted2", "ACES"};
ImGui::Combo("Tone Mapping", &_tone_mapping, tone_mapping_names, std::size(tone_mapping_names));
constexpr const char *const fit_names[] = {"Fill", "Fit", "Stretch"};
Expand Down

0 comments on commit 0dd9ce0

Please sign in to comment.