Skip to content
Snippets Groups Projects
Commit 7fb10d90 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

add reset buttons for alpha, beta

parent c041a25c
Branches
Tags
1 merge request!103Added project wobble_bobble and refactored some parts of the framework
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment