Added set/getNearFarRatio() to CullVisitor.
This commit is contained in:
@@ -121,6 +121,10 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor, public osg::CullStac
|
||||
void setComputeNearFarMode(ComputeNearFarMode cnfm) { _computeNearFar=cnfm; }
|
||||
ComputeNearFarMode getComputeNearFarMode() const { return _computeNearFar;}
|
||||
|
||||
void setNearFarRatio(float ratio) { _nearFarRatio = ratio; }
|
||||
float getNearFarRatio() const { return _nearFarRatio; }
|
||||
|
||||
|
||||
/** Push state set on the current state group.
|
||||
* If the state exists in a child state group of the current
|
||||
* state group then move the current state group to that child.
|
||||
@@ -245,6 +249,7 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor, public osg::CullStac
|
||||
RenderBin* _currentRenderBin;
|
||||
|
||||
ComputeNearFarMode _computeNearFar;
|
||||
float _nearFarRatio;
|
||||
float _computed_znear;
|
||||
float _computed_zfar;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user