X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2FGroundLightManager.cxx;h=9be3f6de21b6ec6bcd34b1098acf8c5e934ad9a7;hb=2cc2a857a2cc2daff30601e0f8f697c768dd5b30;hp=d500103bf6ff3c0116edaf64cbc0863182ab457e;hpb=c5e8c6603c99a264862cc799029b9a7c2f44e75b;p=simgear.git diff --git a/simgear/scene/tgdb/GroundLightManager.cxx b/simgear/scene/tgdb/GroundLightManager.cxx index d500103b..9be3f6de 100644 --- a/simgear/scene/tgdb/GroundLightManager.cxx +++ b/simgear/scene/tgdb/GroundLightManager.cxx @@ -24,7 +24,6 @@ namespace simgear { GroundLightManager::GroundLightManager() { - osg::Fog* fog; runwayLightSS = makeLightSS(); taxiLightSS = makeLightSS(); groundLightSS = makeLightSS(); @@ -36,15 +35,15 @@ void GroundLightManager::update(const SGUpdateVisitor* updateVisitor) SGVec4f fogColor = updateVisitor->getFogColor(); fog = static_cast(runwayLightSS ->getAttribute(StateAttribute::FOG)); - fog->setColor(fogColor.osg()); + fog->setColor(toOsg(fogColor)); fog->setDensity(updateVisitor->getRunwayFogExp2Density()); fog = static_cast(taxiLightSS ->getAttribute(StateAttribute::FOG)); - fog->setColor(fogColor.osg()); + fog->setColor(toOsg(fogColor)); fog->setDensity(updateVisitor->getTaxiFogExp2Density()); fog = static_cast(groundLightSS ->getAttribute(StateAttribute::FOG)); - fog->setColor(fogColor.osg()); + fog->setColor(toOsg(fogColor)); fog->setDensity(updateVisitor->getGroundLightsFogExp2Density()); }