Visual Computing Library  devel
Loading...
Searching...
No Matches
pbr_viewer_settings.h
1/*****************************************************************************
2 * VCLib *
3 * Visual Computing Library *
4 * *
5 * Copyright(C) 2021-2026 *
6 * Visual Computing Lab *
7 * ISTI - Italian National Research Council *
8 * *
9 * All rights reserved. *
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the Mozilla Public License Version 2.0 as published *
13 * by the Mozilla Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * Mozilla Public License Version 2.0 *
20 * (https://www.mozilla.org/en-US/MPL/2.0/) for more details. *
21 ****************************************************************************/
22
23#ifndef VCL_RENDER_SETTINGS_PBR_VIEWER_SETTINGS_H
24#define VCL_RENDER_SETTINGS_PBR_VIEWER_SETTINGS_H
25
26#include <vclib/base.h>
27
28namespace vcl {
29
31{
32 enum class ToneMapping {
33 NONE,
34 BASIC,
35 ACES_HILL,
36 ACES_HILL_EXPOSURE_BOOST,
37 ACES_NARKOWICZ,
38 KHRONOS_PBR_NEUTRAL,
39 COUNT
40 };
41
42 static constexpr const char*
43 TONE_MAPPING_STRINGS[toUnderlying(ToneMapping::COUNT)] = {
44 "None",
45 "Basic",
46 "ACES Hill",
47 "ACES Hill Exposure Boost",
48 "ACES Narkowicz",
49 "Khronos PBR Neutral"};
50
56 bool pbrMode = false;
57
64 bool imageBasedLighting = false;
65
71
75 float exposure = 1.0f;
76
80 ToneMapping toneMapping = ToneMapping::ACES_HILL;
81};
82
83} // namespace vcl
84
85#endif // VCL_RENDER_SETTINGS_PBR_VIEWER_SETTINGS_H
Definition pbr_viewer_settings.h:31
bool pbrMode
Option that tells whether the viewer be set in PBR mode or not.
Definition pbr_viewer_settings.h:56
bool imageBasedLighting
Option that tells whether to use image based lighting (IBL) or not.
Definition pbr_viewer_settings.h:64
bool renderBackgroundPanorama
Option that tells whether to render the background panorama or not.
Definition pbr_viewer_settings.h:70
float exposure
The exposure value to use in PBR mode.
Definition pbr_viewer_settings.h:75
ToneMapping toneMapping
The tone mapping operator to use in PBR mode.
Definition pbr_viewer_settings.h:80