nicer default sky

metadata
Wenzel Jakob 2011-07-28 14:34:59 +02:00
parent 4d01f32749
commit 389ca590d2
1 changed files with 4 additions and 3 deletions

View File

@ -283,10 +283,11 @@ void Scene::initialize() {
if (!m_luminairePDF.isReady()) {
if (m_luminaires.size() == 0) {
Log(EWarn, "No luminaires found -- adding a sky luminaire");
Properties skyPropsProps("sky");
skyPropsProps.setFloat("scale", 0.03f);
Properties skyProps("sky");
skyProps.setFloat("scale", 0.1f);
skyProps.setBoolean("extend", true);
ref<Luminaire> luminaire = static_cast<Luminaire *>(
PluginManager::getInstance()->createObject(MTS_CLASS(Luminaire), skyPropsProps));
PluginManager::getInstance()->createObject(MTS_CLASS(Luminaire), skyProps));
addChild("", luminaire);
luminaire->configure();
}