various bugfixes
parent
97a0d7dd2d
commit
68b72fbe60
|
@ -287,8 +287,11 @@ void Scene::initialize() {
|
||||||
if (m_luminaires.size() == 0) {
|
if (m_luminaires.size() == 0) {
|
||||||
Log(EWarn, "No luminaires found -- adding a constant environment source");
|
Log(EWarn, "No luminaires found -- adding a constant environment source");
|
||||||
Properties constantProps("constant");
|
Properties constantProps("constant");
|
||||||
constantProps.setSpectrum("intensity", Spectrum(0.8f));
|
constantProps.setSpectrum("intensity", Spectrum(0.9f));
|
||||||
addChild("", PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps));
|
ref<Luminaire> luminaire = static_cast<Luminaire *>(
|
||||||
|
PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps));
|
||||||
|
addChild("", luminaire);
|
||||||
|
luminaire->configure();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate a discrete PDF to importance sample luminaires */
|
/* Calculate a discrete PDF to importance sample luminaires */
|
||||||
|
|
Loading…
Reference in New Issue