diff --git a/examples/osgprecipitation/osgprecipitation.cpp b/examples/osgprecipitation/osgprecipitation.cpp index 6906eb28f..f8d5d6eab 100644 --- a/examples/osgprecipitation/osgprecipitation.cpp +++ b/examples/osgprecipitation/osgprecipitation.cpp @@ -115,7 +115,7 @@ int main( int argc, char **argv ) while (arguments.read("--fogColor", color.r(), color.g(), color.b(), color.a() )) precipitationEffect->getFog()->setColor(color); while (arguments.read("--fogColour", color.r(), color.g(), color.b(), color.a() )) precipitationEffect->getFog()->setColor(color); -// while (arguments.read("--useFarLineSegments")) { parameters.useFarLineSegments = true; } + while (arguments.read("--useFarLineSegments")) { precipitationEffect->setUseFarLineSegments(true); } viewer.setClearColor( precipitationEffect->getFog()->getColor() ); diff --git a/include/osgParticle/PrecipitationEffect b/include/osgParticle/PrecipitationEffect index 023adccb1..53606d8cc 100644 --- a/include/osgParticle/PrecipitationEffect +++ b/include/osgParticle/PrecipitationEffect @@ -73,13 +73,21 @@ namespace osgParticle void setFarTransition(float farTransition) { _farTransition = farTransition; } float getFarTransition() const { return _farTransition; } + void setUseFarLineSegments(bool useFarLineSegments) { _useFarLineSegments = useFarLineSegments; } + bool getUseFarLineSegments() const { return _useFarLineSegments; } + void setFog(osg::Fog* fog) { _fog = fog; } osg::Fog* getFog() { return _fog.get(); } const osg::Fog* getFog() const { return _fog.get(); } - osg::Geometry* getQuadGeometry() { return _quadGeometry.get(); } osg::StateSet* getQuadStateSet() { return _quadStateSet.get(); } + + osg::Geometry* getLineGeometry() { return _lineGeometry.get(); } + osg::StateSet* getLineStateSet() { return _lineStateSet.get(); } + + osg::Geometry* getPointGeometry() { return _pointGeometry.get(); } + osg::StateSet* getPointStateSet() { return _pointStateSet.get(); } protected: