nicer default sky
parent
4d01f32749
commit
389ca590d2
|
@ -283,10 +283,11 @@ void Scene::initialize() {
|
||||||
if (!m_luminairePDF.isReady()) {
|
if (!m_luminairePDF.isReady()) {
|
||||||
if (m_luminaires.size() == 0) {
|
if (m_luminaires.size() == 0) {
|
||||||
Log(EWarn, "No luminaires found -- adding a sky luminaire");
|
Log(EWarn, "No luminaires found -- adding a sky luminaire");
|
||||||
Properties skyPropsProps("sky");
|
Properties skyProps("sky");
|
||||||
skyPropsProps.setFloat("scale", 0.03f);
|
skyProps.setFloat("scale", 0.1f);
|
||||||
|
skyProps.setBoolean("extend", true);
|
||||||
ref<Luminaire> luminaire = static_cast<Luminaire *>(
|
ref<Luminaire> luminaire = static_cast<Luminaire *>(
|
||||||
PluginManager::getInstance()->createObject(MTS_CLASS(Luminaire), skyPropsProps));
|
PluginManager::getInstance()->createObject(MTS_CLASS(Luminaire), skyProps));
|
||||||
addChild("", luminaire);
|
addChild("", luminaire);
|
||||||
luminaire->configure();
|
luminaire->configure();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue