Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
EngineInitSettings.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <Common/Log/logger_fwd.h>
6#include <Common/primitive_type.h>
7
8#include <cstddef>
9#include <vector>
10#include <string>
11
12namespace ph
13{
14
20{
21public:
25
30 std::vector<LogHandler> additionalLogHandlers;
31
33
34 real selfIntersectDelta = 0.0002_r;
36
40 bool useRandomSeed = false;
41
42 uint32 fixedSeed = 42;
43 uint32 fixedSeedStep = 1;
44
50 bool tryLoad(const std::string& settingsFile);
51
52 void load(const std::string& settingsFile);
53 void save(const std::string& settingsFile) const;
54};
55
56}// end namespace ph
Options for initializing core engine. These settings are loaded on engine startup and remains constan...
Definition EngineInitSettings.h:20
bool useRandomSeed
Randomly seed the engine RNGs, so the output is not deterministic. This is useful if multiple machine...
Definition EngineInitSettings.h:40
static EngineInitSettings loadStandardConfig()
Load from a standard location. Create one if the file does not exist.
Definition EngineInitSettings.cpp:13
void save(const std::string &settingsFile) const
Definition EngineInitSettings.cpp:74
bool tryLoad(const std::string &settingsFile)
Tries to load from a saved file. If the loading failed, settings are not changed; othersie,...
Definition EngineInitSettings.cpp:26
void load(const std::string &settingsFile)
Definition EngineInitSettings.cpp:39
real selfIntersectDelta
Definition EngineInitSettings.h:34
uint32 fixedSeedStep
Definition EngineInitSettings.h:43
std::size_t numIterativeSurfaceRefinements
Definition EngineInitSettings.h:35
uint32 fixedSeed
Definition EngineInitSettings.h:42
std::vector< LogHandler > additionalLogHandlers
Additional log handlers for the core engine's internal logger. Important note: Handler may be called ...
Definition EngineInitSettings.h:30
ESurfaceRefineMode surfaceRefineMode
Definition EngineInitSettings.h:32
The root for all renderer implementations.
Definition EEngineProject.h:6
ESurfaceRefineMode
Definition ESurfaceRefineMode.h:11