From Paul Martz, "Here's my proposed change regarding the osg-users post "small feature culling threshold". I've updated the comments and brought the default values into agreement, but didn't bother to add the environment variable support."
This commit is contained in:
@@ -217,7 +217,8 @@ class OSG_EXPORT CullSettings
|
||||
/** Get the LOD bias.*/
|
||||
float getLODScale() const { return _LODScale; }
|
||||
|
||||
/** Set the Small Feature Culling Pixel Size.*/
|
||||
/** Threshold at which small features are culled.
|
||||
\param value Boulding volume size in screen space. Default is 2.0. */
|
||||
void setSmallFeatureCullingPixelSize(float value) { _smallFeatureCullingPixelSize=value; applyMaskAction(SMALL_FEATURE_CULLING_PIXEL_SIZE); }
|
||||
|
||||
/** Get the Small Feature Culling Pixel Size.*/
|
||||
|
||||
@@ -161,6 +161,8 @@ class OSG_EXPORT CullingSet : public Referenced
|
||||
Vec4& getPixelSizeVector() { return _pixelSizeVector; }
|
||||
const Vec4& getPixelSizeVector() const { return _pixelSizeVector; }
|
||||
|
||||
/** Threshold at which small features are culled.
|
||||
\param value Boulding volume size in screen space. Default is 2.0. */
|
||||
void setSmallFeatureCullingPixelSize(float value) { _smallFeatureCullingPixelSize=value; }
|
||||
|
||||
float& getSmallFeatureCullingPixelSize() { return _smallFeatureCullingPixelSize; }
|
||||
|
||||
Reference in New Issue
Block a user