Fix aiport signs appearing black when photoscenery enabled

This commit is contained in:
Nathaniel Warner 2020-12-16 14:16:30 -08:00 committed by James Turner
parent 5c21df742c
commit 3898ca5c09

View File

@ -211,6 +211,13 @@ GlyphGeometry* makeGeometry(Effect* eff, osg::Group* group)
geometry->addPrimitiveSet(gg->quads);
geode->addDrawable(geometry);
group->addChild(geode);
// Because the airport signs are rendered with some of the same shaders as terrain,
// we need to explicitly set orthophotoAvailable to false.
osg::StateSet *stateSet = group->getOrCreateStateSet();
osg::ref_ptr<osg::Uniform> orthophotoAvailable = stateSet->getOrCreateUniform("orthophotoAvailable", osg::Uniform::Type::BOOL);
orthophotoAvailable->set(false);
return gg;
}