Skip to content

Commit 4eab329

Browse files
committed
Added envmapRegularizationFactor to Film Element
1 parent c1f74d4 commit 4eab329

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

include/nbl/ext/MitsubaLoader/CElementFilm.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class CElementFilm : public IElement
141141
float denoiserBloomIntensity = 0.0f;
142142
_NBL_STATIC_INLINE_CONSTEXPR size_t MaxTonemapperArgsLen = 128;
143143
char denoiserTonemapperArgs[MaxTonemapperArgsLen+1] = {0};
144-
float EnvmapRegularizationFactor = 0.0f; // 1.0f means all envmap, 0.0f means no envmap
144+
float envmapRegularizationFactor = 0.0f; // 1.0f means based envmap luminance, 0.0f means uniform
145145
};
146146

147147

src/nbl/ext/MitsubaLoader/CElementFilm.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ bool CElementFilm::addProperty(SNamedPropertyElement&& _property)
270270
auto setBloomScale = SET_PROPERTY(denoiserBloomScale,SNamedPropertyElement::Type::FLOAT);
271271
auto setBloomIntensity = SET_PROPERTY(denoiserBloomIntensity,SNamedPropertyElement::Type::FLOAT);
272272

273+
auto setEnvmapRegularizationFactor = SET_PROPERTY(envmapRegularizationFactor,SNamedPropertyElement::Type::FLOAT);
274+
273275
const core::unordered_map<std::string, std::function<void()>, core::CaseInsensitiveHash, core::CaseInsensitiveEquals> SetPropertyMap =
274276
{
275277
{"width", setWidth},
@@ -295,7 +297,8 @@ bool CElementFilm::addProperty(SNamedPropertyElement&& _property)
295297
{"bloomFilePath", setBloomFilePath},
296298
{"bloomScale", setBloomScale},
297299
{"bloomIntensity", setBloomIntensity},
298-
{"tonemapper", setTonemapperArgs}
300+
{"tonemapper", setTonemapperArgs},
301+
{"envmapRegularizationFactor", setEnvmapRegularizationFactor}
299302
};
300303

301304
auto found = SetPropertyMap.find(_property.name);

0 commit comments

Comments
 (0)