Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
sdl_photon_mapping_mode.h
Go to the documentation of this file.
1#pragma once
2
3#include "SDL/sdl_interface.h"
4
5namespace ph
6{
7
15
17{
18 SdlEnumType sdlEnum("photon-mapping-mode");
19 sdlEnum.description("Type of the photon mapping method.");
20
21 sdlEnum.addEntry(EnumType::Vanilla, "vanilla",
22 "Directly compute energy values from photon map, no fancy tricks applied.");
23
24 sdlEnum.addEntry(EnumType::Progressive, "progressive",
25 "Progressively refine the rendered results.");
26
27 sdlEnum.addEntry(EnumType::StochasticProgressive, "stochastic-progressive",
28 "Stochastic sampling technique is utilized for energy value computation.");
29
30 sdlEnum.addEntry(EnumType::ProbabilisticProgressive, "probabilistic-progressive",
31 "Probabilistic approach to progressive photon mapping. Consumes more memory, but is "
32 "easily parallelizable to multiple workers.");
33
34 return sdlEnum;
35}
36
37}// end namespace ph
SDL enum implementation with common features. Enum value and string mapping are done in a brute-force...
Definition TSdlGeneralEnum.h:26
The root for all renderer implementations.
Definition EEngineProject.h:6
EPhotonMappingMode
Definition sdl_photon_mapping_mode.h:9
#define PH_DEFINE_SDL_ENUM(...)
Define a SDL enum with function-like syntax.
Definition sdl_interface.h:142