MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / UpdateUI

Method UpdateUI

PostProcess/Bloom/src/Bloom.cpp:428–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428bool 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected