diff --git a/projects/wobble_bobble/src/main.cpp b/projects/wobble_bobble/src/main.cpp index bab393049209842797b31b229e2c6d26a3d66229..6c4fb68062759c69a48b58de9ac06c90b25377cd 100644 --- a/projects/wobble_bobble/src/main.cpp +++ b/projects/wobble_bobble/src/main.cpp @@ -750,7 +750,15 @@ int main(int argc, const char **argv) { ImGui::Checkbox("Render Grid", &renderGrid); ImGui::SliderFloat("Alpha (PIC -> FLIP)", &alpha, 0.0f, 1.0f); + ImGui::SameLine(0.0f, 10.0f); + if (ImGui::SmallButton("Reset")) { + alpha = 0.5f; + } ImGui::SliderFloat("Beta (Alpha -> APIC)", &beta, 0.0f, 1.0f); + ImGui::SameLine(0.0f, 10.0f); + if (ImGui::SmallButton("Reset")) { + beta = 0.75f; + } ImGui::DragFloat3("Initial velocity", reinterpret_cast<float*>(&initialVelocity));