diff --git a/src/librender/scene.cpp b/src/librender/scene.cpp index 5a75d8e8..e0b0b9af 100644 --- a/src/librender/scene.cpp +++ b/src/librender/scene.cpp @@ -287,8 +287,11 @@ void Scene::initialize() { if (m_luminaires.size() == 0) { Log(EWarn, "No luminaires found -- adding a constant environment source"); Properties constantProps("constant"); - constantProps.setSpectrum("intensity", Spectrum(0.8f)); - addChild("", PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps)); + constantProps.setSpectrum("intensity", Spectrum(0.9f)); + ref luminaire = static_cast( + PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps)); + addChild("", luminaire); + luminaire->configure(); } /* Calculate a discrete PDF to importance sample luminaires */