mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-17 15:06:17 +02:00
Respect zone visibility property.
This commit is contained in:
parent
8a36df13df
commit
9cdd0ac6d0
1 changed files with 3 additions and 2 deletions
|
@ -364,8 +364,9 @@ void EntityTreeRenderer::applyZonePropertiesToScene(std::shared_ptr<ZoneEntityIt
|
|||
_pendingSkyboxTexture = true;
|
||||
}
|
||||
}
|
||||
|
||||
skyStage->setBackgroundMode(model::SunSkyStage::SKY_BOX);
|
||||
// Visibility does not effect other side effects such as ambient light or the selection of "best" zone.
|
||||
// The skyStage backgroundMode is the hammer used (e.g., in Application.cpp) to control the visiblity of the sky box.
|
||||
skyStage->setBackgroundMode(zone->getVisible() ? model::SunSkyStage::SKY_BOX : model::SunSkyStage::SKY_DOME);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue