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
14
namespace
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
*/
21
struct
QuantumBloomSample
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
*/
35
class
QuantumBloom
36
{
37
public
:
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
*/
50
static
QuantumBloomSample
combine
(
const
QuantumBloomSample
&scene,
51
const
QuantumBloomSample
&blurredHighlights,
52
float
strength);
53
};
54
55
}
// namespace qpe
qpe::QuantumBloom
Implements the Quantum Bloom component.
Definition
quantumbloom.h:36
qpe::QuantumBloom::clampStrength
static float clampStrength(float strength)
Performs clamp strength.
Definition
quantumbloom.cpp:18
qpe::QuantumBloom::combine
static QuantumBloomSample combine(const QuantumBloomSample &scene, const QuantumBloomSample &blurredHighlights, float strength)
Performs combine.
Definition
quantumbloom.cpp:23
qpe
Definition
mainwindow.h:76
qpe::QuantumBloomSample
Data record containing Quantum Bloom Sample.
Definition
quantumbloom.h:22
qpe::QuantumBloomSample::b
float b
Definition
quantumbloom.h:25
qpe::QuantumBloomSample::g
float g
Definition
quantumbloom.h:24
qpe::QuantumBloomSample::r
float r
Definition
quantumbloom.h:23
graphics
renderer
quantumbloom.h
Generated by
1.12.0