1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-24 05:00:58 +00:00

Fix local map water rendering and adjust extraction delay

This commit is contained in:
Diject 2026-01-03 15:04:55 +03:00
parent 34931d0159
commit eeb261d99d
2 changed files with 5 additions and 4 deletions

View file

@ -219,7 +219,7 @@ namespace OMW
Log(Debug::Info) << "LocalMap instance is available, starting extraction";
mFramesToWait = 10; // Wait 10 frames before checking (increased from 3)
mFramesToWait = 5;
startExtraction(activeCells);
}

View file

@ -765,9 +765,10 @@ namespace MWRender
camera->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
camera->setRenderOrder(osg::Camera::PRE_RENDER);
camera->setCullMask(Mask_Scene | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
camera->setCullMaskLeft(Mask_Scene | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
camera->setCullMaskRight(Mask_Scene | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
// Add Mask_Water to fix missing water in some exterior local maps
camera->setCullMask(Mask_Scene | Mask_Water | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
camera->setCullMaskLeft(Mask_Scene | Mask_Water | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
camera->setCullMaskRight(Mask_Scene | Mask_Water | Mask_SimpleWater | Mask_Terrain | Mask_Object | Mask_Static);
camera->setNodeMask(Mask_RenderToTexture);
camera->setProjectionMatrix(mProjectionMatrix);
camera->setViewMatrix(mViewMatrix);