Added UseFarLineSegments option
This commit is contained in:
parent
039457700d
commit
475f526b3d
@ -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() );
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user