Fixed setting of pmv matrix

This commit is contained in:
Robert Osfield 2020-12-29 13:31:15 +00:00
parent ba7334ef29
commit f027c4c420

View File

@ -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());