25 #include "../common/WProperties.h"
27 #include "shaders/WGEShader.h"
28 #include "shaders/WGEPropertyUniform.h"
30 #include "WGEViewerEffectVignette.h"
36 WPropDouble vignetteIntensity =
m_properties->addProperty(
"Strength",
"Define dominance of vignette effect.", 0.33 );
37 vignetteIntensity->setMin( 0.0 );
38 vignetteIntensity->setMax( 2.0 );
42 osg::ref_ptr< WGEShader > vignetteShader =
new WGEShader(
"WGECameraVignette" );
43 vignetteShader->apply(
m_geode );
Class encapsulating the OSG Program class for a more convenient way of adding and modifying shader.
virtual ~WGEViewerEffectVignette()
Destructor.
WGEViewerEffectVignette()
Default constructor.
Base class for implementing basic fullscreen effects for the WGEViewer.
osg::ref_ptr< osg::StateSet > m_state
The stateset of the cam.
osg::ref_ptr< osg::Geode > m_geode
The fullscreen quad.
WProperties::SPtr m_properties
the properties of the object.