Improved memory consumption and performance. Added default parameters.

This commit is contained in:
Jonathas Costa
2019-02-25 10:02:25 -05:00
parent 72ca49e43d
commit 0502197336
6 changed files with 34 additions and 25 deletions

View File

@@ -211,7 +211,7 @@ private:
float _bloomThresholdMax = 1.0;
float _bloomOrigFactor = 1.0;
float _bloomNewFactor = 1.0;
int _toneMapOperator = 0;
int _toneMapOperator = 8; // JCC TODO: temporarilly set to 8 because setProperty seems not to be working for OptionProperty
bool _histogramEnabled = false;
int _numberOfBins = 1024; // JCC TODO: Add a parameter control for this.
float _tmoKey = 0.18f;

View File

@@ -68,18 +68,18 @@ public:
// defines in hdr.glsl file.
enum class ToneMapOperators {
EXPONENTIAL = 0,
LINEAR,
SIMPLE_REINHARD,
LUM_BASED_REINHARD,
WHITE_PRESERVING,
ROM_BIN_DA_HOUSE,
FILMIC,
UNCHARTED,
COSTA,
ADAPTIVE,
GLOBAL,
PHOTOGRAPHIC_REINHARD,
MIPMAPPING
LINEAR, //1
SIMPLE_REINHARD, //2
LUM_BASED_REINHARD, //3
WHITE_PRESERVING, //4
ROM_BIN_DA_HOUSE, //5
FILMIC, //6
UNCHARTED, //7
COSTA, //8
ADAPTIVE, //8
GLOBAL, //9
PHOTOGRAPHIC_REINHARD, //10
MIPMAPPING //11
};
enum class COLORSPACE {