Added UseFarLineSegments option

This commit is contained in:
Robert Osfield 2006-04-25 12:56:33 +00:00
parent 039457700d
commit 475f526b3d
2 changed files with 10 additions and 2 deletions

View File

@ -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() );

View File

@ -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: