various bugfixes

metadata
Wenzel Jakob 2010-11-30 18:56:48 +01:00
parent 97a0d7dd2d
commit 68b72fbe60
1 changed files with 5 additions and 2 deletions

View File

@ -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> luminaire = static_cast<Luminaire *>(
PluginManager::getInstance()->createObject(Luminaire::m_theClass, constantProps));
addChild("", luminaire);
luminaire->configure();
}
/* Calculate a discrete PDF to importance sample luminaires */