Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
PMCommonParams.h
Go to the documentation of this file.
1#pragma once
2
3#include <Common/primitive_type.h>
4
5#include <cstddef>
6
7namespace ph
8{
9
12class PMCommonParams final
13{
14public:
15 inline static constexpr uint32 DEFAULT_MAX_PATH_LENGTH = 16384;
16
19 std::size_t numPhotons = 200000;
20
23 std::size_t numPasses = 1;
24
29 std::size_t numSamplesPerPixel = 4;
30
34 real kernelRadius = 0.1_r;
35
41
47
53 real alpha = 2.0_r / 3.0_r;
54
60
67};
68
69}// end namespace ph
Common parameters of photon mapping.
Definition PMCommonParams.h:13
uint32 glossyMergeBeginLength
Definition PMCommonParams.h:59
std::size_t numPasses
Definition PMCommonParams.h:23
uint32 maxPhotonPathLength
Definition PMCommonParams.h:46
uint32 stochasticViewSampleBeginLength
Definition PMCommonParams.h:66
real kernelRadius
Definition PMCommonParams.h:34
real alpha
Definition PMCommonParams.h:53
std::size_t numPhotons
Definition PMCommonParams.h:19
std::size_t numSamplesPerPixel
Definition PMCommonParams.h:29
static constexpr uint32 DEFAULT_MAX_PATH_LENGTH
Definition PMCommonParams.h:15
uint32 minPhotonPathLength
Definition PMCommonParams.h:40
The root for all renderer implementations.
Definition EEngineProject.h:6