1
0
Fork 0

Fixed hot-spot display for 3d modes

Also set left/right culling masks (standard mask no effect when 3d rendering is enabled).
This commit is contained in:
ThorstenB 2010-11-08 00:24:41 +01:00
parent 2d145d3251
commit 85185b56c5

View file

@ -477,9 +477,15 @@ void CameraGroup::setCameraCullMasks(Node::NodeMask nm)
continue;
if (info->farCamera.valid() && info->farCamera->getNodeMask() != 0) {
info->camera->setCullMask(nm & ~simgear::BACKGROUND_BIT);
info->camera->setCullMaskLeft(nm & ~simgear::BACKGROUND_BIT);
info->camera->setCullMaskRight(nm & ~simgear::BACKGROUND_BIT);
info->farCamera->setCullMask(nm);
info->farCamera->setCullMaskLeft(nm);
info->farCamera->setCullMaskRight(nm);
} else {
info->camera->setCullMask(nm);
info->camera->setCullMaskLeft(nm);
info->camera->setCullMaskRight(nm);
}
}
}