mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-10 04:46:08 -04:00
Apply Mask_RenderToTexture to local map RTT node
This commit is contained in:
parent
a875ac86c0
commit
6bb296723e
@ -662,6 +662,8 @@ LocalMapRenderToTexture::LocalMapRenderToTexture(osg::Node* sceneRoot, int res,
|
|||||||
, mSceneRoot(sceneRoot)
|
, mSceneRoot(sceneRoot)
|
||||||
, mActive(true)
|
, mActive(true)
|
||||||
{
|
{
|
||||||
|
setNodeMask(Mask_RenderToTexture);
|
||||||
|
|
||||||
if (SceneUtil::AutoDepth::isReversed())
|
if (SceneUtil::AutoDepth::isReversed())
|
||||||
mProjectionMatrix = SceneUtil::getReversedZProjectionMatrixAsOrtho(-mapWorldSize / 2, mapWorldSize / 2, -mapWorldSize / 2, mapWorldSize / 2, 5, (zmax - zmin) + 10);
|
mProjectionMatrix = SceneUtil::getReversedZProjectionMatrixAsOrtho(-mapWorldSize / 2, mapWorldSize / 2, -mapWorldSize / 2, mapWorldSize / 2, 5, (zmax - zmin) + 10);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user