mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:36:43 +00:00
Use a smaller static geometry size for interior cells
This commit is contained in:
parent
bd6dd071aa
commit
0463dc0653
1 changed files with 4 additions and 1 deletions
|
@ -130,7 +130,10 @@ void Objects::insertModel(const MWWorld::Ptr &ptr, const std::string &mesh)
|
||||||
// - the culling will be more inefficient
|
// - the culling will be more inefficient
|
||||||
// If it is set too low:
|
// If it is set too low:
|
||||||
// - there will be too many batches.
|
// - there will be too many batches.
|
||||||
sg->setRegionDimensions(Ogre::Vector3(2500,2500,2500));
|
if(ptr.getCell()->isExterior())
|
||||||
|
sg->setRegionDimensions(Ogre::Vector3(2048,2048,2048));
|
||||||
|
else
|
||||||
|
sg->setRegionDimensions(Ogre::Vector3(1024,1024,1024));
|
||||||
|
|
||||||
sg->setVisibilityFlags(small ? RV_StaticsSmall : RV_Statics);
|
sg->setVisibilityFlags(small ? RV_StaticsSmall : RV_Statics);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue