Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumbloom.h
Go to the documentation of this file.
1/**
2 * @file quantumbloom.h
3 * @brief Declares the quantumbloom visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumbloom.h. This file is part of Quantum Phenomena Explorer (QPE),
7 * maintained by Officina Turini. See LICENSE_IT.txt / LICENSE.txt for the
8 * QPE freeware source-available terms and THIRD_PARTY_NOTICES.txt for
9 * third-party components.
10 */
11
12#pragma once
13
14namespace qpe {
15
16/**
17 * @brief Data record containing Quantum Bloom Sample.
18 *
19 * The structure carries computed data without coupling the numerical component to the GUI or renderer.
20 */
22{
23 float r = 0.0f;
24 float g = 0.0f;
25 float b = 0.0f;
26};
27
28// Small CPU reference for the GPU bloom composition used by QuantumGLView.
29// The quantum state is never modified: this combines display-space HDR colors only.
30/**
31 * @brief Implements the Quantum Bloom component.
32 *
33 * The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
34 */
36{
37public:
38 /**
39 * @brief Performs clamp strength.
40 * @param strength The strength value used by the operation.
41 */
42 static float clampStrength(float strength);
43
44 /**
45 * @brief Performs combine.
46 * @param scene The scene value used by the operation.
47 * @param blurredHighlights The blurred highlights value used by the operation.
48 * @param strength The strength value used by the operation.
49 */
51 const QuantumBloomSample &blurredHighlights,
52 float strength);
53};
54
55} // namespace qpe
Implements the Quantum Bloom component.
static float clampStrength(float strength)
Performs clamp strength.
static QuantumBloomSample combine(const QuantumBloomSample &scene, const QuantumBloomSample &blurredHighlights, float strength)
Performs combine.
Data record containing Quantum Bloom Sample.