Addition of radius parameter for ClusterCullingCallback's constructor

The radius parameter is already present in ClusterCullingCallback's set method but has been forgotten in the constructor.
This commit is contained in:
Hartwig 2018-02-15 21:10:59 +01:00
parent 486cd48daf
commit 73a36679df
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class OSG_EXPORT ClusterCullingCallback : public DrawableCullCallback, public No
ClusterCullingCallback();
ClusterCullingCallback(const ClusterCullingCallback& ccc,const CopyOp& copyop);
ClusterCullingCallback(const osg::Vec3& controlPoint, const osg::Vec3& normal, float deviation);
ClusterCullingCallback(const osg::Vec3& controlPoint, const osg::Vec3& normal, float deviation, float radius=-1.0f);
ClusterCullingCallback(const osg::Drawable* drawable);
META_Object(osg,ClusterCullingCallback);

View File

@ -40,10 +40,10 @@ ClusterCullingCallback::ClusterCullingCallback(const ClusterCullingCallback& ccc
{
}
ClusterCullingCallback::ClusterCullingCallback(const osg::Vec3& controlPoint, const osg::Vec3& normal, float deviation):
ClusterCullingCallback::ClusterCullingCallback(const osg::Vec3& controlPoint, const osg::Vec3& normal, float deviation, float radius):
_controlPoint(controlPoint),
_normal(normal),
_radius(-1.0f),
_radius(radius),
_deviation(deviation)
{
}