1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-17 19:20:49 +00:00

Merge branch 'nobody-cared-who-he-was-until-he-didnt-put-on-the-mask' into 'master'

Apply Mask_RenderToTexture to local map RTT node

Closes #6784

See merge request OpenMW/openmw!1962
This commit is contained in:
psi29a 2022-06-02 07:14:30 +00:00
commit 160cbb51d2

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