mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-05 16:45:33 +00:00
Disable small feature culling for orthographic cameras
This commit is contained in:
parent
0e3ae38e49
commit
110e3761bf
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ osg::ref_ptr<osg::Camera> LocalMap::createOrthographicCamera(float x, float y, f
|
|||
camera->setCullMask(Mask_Scene | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
|
||||
camera->setNodeMask(Mask_RenderToTexture);
|
||||
|
||||
// Disable small feature culling, it's not going to be reliable for this camera
|
||||
osg::Camera::CullingMode cullingMode = (osg::Camera::DEFAULT_CULLING|osg::Camera::FAR_PLANE_CULLING) & ~(osg::CullStack::SMALL_FEATURE_CULLING);
|
||||
camera->setCullingMode(cullingMode);
|
||||
|
||||
osg::ref_ptr<osg::StateSet> stateset = new osg::StateSet;
|
||||
stateset->setAttribute(new osg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::FILL), osg::StateAttribute::OVERRIDE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue