mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
Add mask.
This commit is contained in:
parent
0eb863d8fc
commit
642b1d0273
@ -84,6 +84,7 @@ CSVRender::Cell::Cell (CSMWorld::Data& data, osg::Group* rootNode, const std::st
|
|||||||
osg::ref_ptr<osg::PositionAttitudeTransform> pathgridTransform = new osg::PositionAttitudeTransform();
|
osg::ref_ptr<osg::PositionAttitudeTransform> pathgridTransform = new osg::PositionAttitudeTransform();
|
||||||
pathgridTransform->setPosition(osg::Vec3f(mCoordinates.getX() * ESM::Land::REAL_SIZE,
|
pathgridTransform->setPosition(osg::Vec3f(mCoordinates.getX() * ESM::Land::REAL_SIZE,
|
||||||
mCoordinates.getY() * ESM::Land::REAL_SIZE, 0));
|
mCoordinates.getY() * ESM::Land::REAL_SIZE, 0));
|
||||||
|
pathgridTransform->setNodeMask(Mask_Pathgrid);
|
||||||
mCellNode->addChild(pathgridTransform);
|
mCellNode->addChild(pathgridTransform);
|
||||||
|
|
||||||
mPathgridGeode = new osg::Geode();
|
mPathgridGeode = new osg::Geode();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user