mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Disable culling of ClipNode
This commit is contained in:
parent
cbf344663f
commit
706b1d4c28
@ -198,6 +198,7 @@ public:
|
|||||||
mClipNode->getClipPlaneList().clear();
|
mClipNode->getClipPlaneList().clear();
|
||||||
mClipNode->addClipPlane(new osg::ClipPlane(0, osg::Plane(mPlane.getNormal(), 0))); // mPlane.d() applied in FlipCallback
|
mClipNode->addClipPlane(new osg::ClipPlane(0, osg::Plane(mPlane.getNormal(), 0))); // mPlane.d() applied in FlipCallback
|
||||||
mClipNode->setStateSetModes(*getOrCreateStateSet(), osg::StateAttribute::ON);
|
mClipNode->setStateSetModes(*getOrCreateStateSet(), osg::StateAttribute::ON);
|
||||||
|
mClipNode->setCullingActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user