From f027c4c420a771fe1bd3a2b1fbe8f83cb07219b2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 29 Dec 2020 13:31:15 +0000 Subject: [PATCH] Fixed setting of pmv matrix --- examples/osgmultiviewOVR/MultiviewOVR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgmultiviewOVR/MultiviewOVR.cpp b/examples/osgmultiviewOVR/MultiviewOVR.cpp index d6a75becb..7749dfc98 100644 --- a/examples/osgmultiviewOVR/MultiviewOVR.cpp +++ b/examples/osgmultiviewOVR/MultiviewOVR.cpp @@ -37,7 +37,7 @@ struct CustomIntialFrustumCallback : public osg::CullSettings::InitialFrustumCal void computeClipSpaceBound(osg::Camera& camera) { - osg::Matrixd pmv = camera.getViewMatrix() * camera.getViewMatrix(); + osg::Matrixd pmv = camera.getProjectionMatrix() * camera.getViewMatrix(); size_t numOffsets = std::min(projectionOffsets.size(), viewOffsets.size());