diff --git a/include/osg/CullSettings b/include/osg/CullSettings index c1a8877ce..c61fe9138 100644 --- a/include/osg/CullSettings +++ b/include/osg/CullSettings @@ -270,6 +270,88 @@ class OSG_EXPORT CullSettings }; +template +bool clampProjectionMatrix(matrix_type& projection, double& znear, double& zfar, value_type nearFarRatio) +{ + double epsilon = 1e-6; + if (zfar -bool _clampProjectionMatrix(matrix_type& projection, double& znear, double& zfar, value_type nearFarRatio) -{ - double epsilon = 1e-6; - if (zfar