mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:10:40 +02:00
Don't change apply zone logic
This commit is contained in:
parent
5e41421f9d
commit
911375b7a1
1 changed files with 14 additions and 14 deletions
|
@ -262,6 +262,9 @@ void EntityTreeRenderer::applyZonePropertiesToScene(std::shared_ptr<ZoneEntityIt
|
|||
auto sceneTime = sceneStage->getTime();
|
||||
auto backgroundMode = BACKGROUND_MODE_INHERIT; // Default
|
||||
|
||||
if (zone) {
|
||||
backgroundMode = zone->getBackgroundMode();
|
||||
|
||||
if (!_hasPreviousZone) {
|
||||
_previousKeyLightColor = sceneKeyLight->getColor();
|
||||
_previousKeyLightIntensity = sceneKeyLight->getIntensity();
|
||||
|
@ -276,9 +279,6 @@ void EntityTreeRenderer::applyZonePropertiesToScene(std::shared_ptr<ZoneEntityIt
|
|||
_hasPreviousZone = true;
|
||||
}
|
||||
|
||||
if (zone) {
|
||||
backgroundMode = zone->getBackgroundMode();
|
||||
|
||||
sceneKeyLight->setColor(ColorUtils::toVec3(zone->getKeyLightProperties().getColor()));
|
||||
sceneKeyLight->setIntensity(zone->getKeyLightProperties().getIntensity());
|
||||
sceneKeyLight->setAmbientIntensity(zone->getKeyLightProperties().getAmbientIntensity());
|
||||
|
|
Loading…
Reference in a new issue