Fix aiport signs appearing black when photoscenery enabled
This commit is contained in:
parent
5c21df742c
commit
3898ca5c09
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user