1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-03 12:45:38 +00:00

Apply Mask_RenderToTexture to local map RTT node

This commit is contained in:
Mads Buvik Sandvei 2022-06-01 21:28:15 +02:00
parent a875ac86c0
commit 6bb296723e

View file

@ -662,6 +662,8 @@ LocalMapRenderToTexture::LocalMapRenderToTexture(osg::Node* sceneRoot, int res,
, mSceneRoot(sceneRoot)
, mActive(true)
{
setNodeMask(Mask_RenderToTexture);
if (SceneUtil::AutoDepth::isReversed())
mProjectionMatrix = SceneUtil::getReversedZProjectionMatrixAsOrtho(-mapWorldSize / 2, mapWorldSize / 2, -mapWorldSize / 2, mapWorldSize / 2, 5, (zmax - zmin) + 10);
else