mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 00:28:08 -04:00
Fix frontface bug
This commit is contained in:
parent
c334a76a6f
commit
57fd18b161
@ -172,7 +172,7 @@ namespace SceneUtil
|
|||||||
// However MW isn't doing this either, so don't. Assuming all meshes are using backface culling is more efficient.
|
// However MW isn't doing this either, so don't. Assuming all meshes are using backface culling is more efficient.
|
||||||
osg::FrontFace* frontFace = new osg::FrontFace;
|
osg::FrontFace* frontFace = new osg::FrontFace;
|
||||||
frontFace->setMode(osg::FrontFace::CLOCKWISE);
|
frontFace->setMode(osg::FrontFace::CLOCKWISE);
|
||||||
toAttach->getOrCreateStateSet()->setAttributeAndModes(frontFace, osg::StateAttribute::ON);
|
trans->getOrCreateStateSet()->setAttributeAndModes(frontFace, osg::StateAttribute::ON);
|
||||||
|
|
||||||
find.mFoundNode->addChild(trans);
|
find.mFoundNode->addChild(trans);
|
||||||
trans->addChild(toAttach);
|
trans->addChild(toAttach);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user