Repository navigation
Expand file tree
/
Copy pathpost_processing_description.h
More file actions
80 lines (66 loc) · 1.76 KB
/
Copy pathpost_processing_description.h
File metadata and controls
80 lines (66 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
////////////////////////////////////////////////////////////////////////////////
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE or copy at //
// https://www.boost.org/LICENSE_1_0.txt) //
////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <cstdint>
#include <optional>
namespace iris
{
/**
* User settings for SSAO.
*/
struct AmbientOcclusionDescription
{
/** Number of samples to take when calculating occlusion. */
std::uint32_t sample_count = 32u;
/** Radius of each sample. */
float radius = 0.5f;
/** Bias to apply to random sample depth when comparing. */
float bias = 0.025f;
};
/**
* User settings for bloom.
*/
struct BloomDescription
{
/** Threshold luminance to bloom. */
float threshold = 1.0f;
/** Number of blur iterations. */
std::uint32_t iterations = 5u;
};
/**
* Enumeration of possible tone map curves.
*/
enum class ToneMapCurve
{
REINHARD
};
/**
* User settings for colour adjustment.
*/
struct ColourAdjustDescription
{
/** Gamma amount. */
float gamma = 2.2f;
/** Tone map curve. */
ToneMapCurve tone_map_curve = ToneMapCurve::REINHARD;
};
/**
* User settings for FXAA.
*/
struct AntiAliasingDescription
{
};
/**
* Description of post processing effects to apply a render pass.
*/
struct PostProcessingDescription
{
std::optional<AmbientOcclusionDescription> ambient_occlusion = std::nullopt;
std::optional<BloomDescription> bloom = std::nullopt;
std::optional<ColourAdjustDescription> colour_adjust = std::nullopt;
std::optional<AntiAliasingDescription> anti_aliasing = std::nullopt;
};
}