hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/states/simulation_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/states/simulation_state.cpp')
-rw-r--r--src/states/simulation_state.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/states/simulation_state.cpp b/src/states/simulation_state.cpp
index 5c75569..6d7ae47 100644
--- a/src/states/simulation_state.cpp
+++ b/src/states/simulation_state.cpp
@@ -60,7 +60,7 @@ namespace Donut
RenderCommand::set_viewport(0, 0, static_cast<uint32_t>(engine.get_width()), static_cast<uint32_t>(engine.get_height()));
engine.dispatch_compute(engine.get_camera());
- engine.draw_full_screen_quad();
+ engine.draw_blur_pass();
}
void SimulationState::on_event(Event& event)
@@ -244,6 +244,20 @@ namespace Donut
}
ImGui::TextDisabled("Rotation speed multiplier (0 = no rotation)");
+ float blur_strength = engine.get_blur_strength();
+ if (ImGui::SliderFloat("Blur Strength", &blur_strength, 0.5f, 5.0f, "%.2f"))
+ {
+ engine.set_blur_strength(blur_strength);
+ }
+ ImGui::TextDisabled("Blur radius for glow effect");
+
+ float glow_intensity = engine.get_glow_intensity();
+ if (ImGui::SliderFloat("Glow Intensity", &glow_intensity, 0.1f, 3.0f, "%.2f"))
+ {
+ engine.set_glow_intensity(glow_intensity);
+ }
+ ImGui::TextDisabled("Intensity of the glow effect");
+
ImGui::Spacing();
ImGui::TextColored(ImVec4(0.9f, 0.9f, 1.0f, 1.0f), "Camera");