| 426 | } |
| 427 | |
| 428 | bool Bloom::UpdateUI(HLSL::BloomAttribs& Attribs, FEATURE_FLAGS& FeatureFlags) |
| 429 | { |
| 430 | bool AttribsChanged = false; |
| 431 | |
| 432 | if (ImGui::SliderFloat("Intensity", &Attribs.Intensity, 0.0f, 1.0f)) |
| 433 | AttribsChanged = true; |
| 434 | ImGui::HelpMarker("The intensity of the bloom effect."); |
| 435 | |
| 436 | if (ImGui::SliderFloat("Radius", &Attribs.Radius, 0.3f, 0.85f)) |
| 437 | AttribsChanged = true; |
| 438 | ImGui::HelpMarker("This variable controls the size of the bloom effect. A larger radius will result in a larger area of the image being affected by the bloom effect."); |
| 439 | |
| 440 | if (ImGui::SliderFloat("Threshold", &Attribs.Threshold, 0.0f, 10.0f)) |
| 441 | AttribsChanged = true; |
| 442 | ImGui::HelpMarker("This value determines the minimum brightness required for a pixel to contribute to the bloom effect."); |
| 443 | |
| 444 | if (ImGui::SliderFloat("Soft Threshold", &Attribs.SoftTreshold, 0.0f, 1.0f)) |
| 445 | AttribsChanged = true; |
| 446 | ImGui::HelpMarker("This value determines the softness of the threshold. A higher value will result in a softer threshold."); |
| 447 | |
| 448 | return AttribsChanged; |
| 449 | } |
| 450 | |
| 451 | } // namespace Diligent |
nothing calls this directly
no outgoing calls
no test coverage detected