diff options
Diffstat (limited to 'src/States')
| -rw-r--r-- | src/States/SimulationState.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/States/SimulationState.cpp b/src/States/SimulationState.cpp index 28504e6..2a79b3c 100644 --- a/src/States/SimulationState.cpp +++ b/src/States/SimulationState.cpp @@ -60,7 +60,7 @@ namespace Donut RenderCommand::SetViewport(0, 0, static_cast<uint32_t>(engine.GetWidth()), static_cast<uint32_t>(engine.GetHeight())); engine.DispatchCompute(engine.GetCamera()); - engine.DrawFullScreenQuad(); + engine.DrawBlurPass(); } void SimulationState::OnEvent(Event& event) @@ -244,6 +244,20 @@ namespace Donut } ImGui::TextDisabled("Rotation speed multiplier (0 = no rotation)"); + float blurStrength = engine.GetBlurStrength(); + if (ImGui::SliderFloat("Blur Strength", &blurStrength, 0.5f, 5.0f, "%.2f")) + { + engine.SetBlurStrength(blurStrength); + } + ImGui::TextDisabled("Blur radius for glow effect"); + + float glowIntensity = engine.GetGlowIntensity(); + if (ImGui::SliderFloat("Glow Intensity", &glowIntensity, 0.1f, 3.0f, "%.2f")) + { + engine.SetGlowIntensity(glowIntensity); + } + ImGui::TextDisabled("Intensity of the glow effect"); + ImGui::Spacing(); ImGui::TextColored(ImVec4(0.9f, 0.9f, 1.0f, 1.0f), "Camera"); |
