28 #include "WGEPostprocessorEdgeEnhance.h"
29 #include "WGEPostprocessorCelShading.h"
30 #include "WGEPostprocessorGauss.h"
31 #include "WGEPostprocessorSSAO.h"
32 #include "WGEPostprocessorLineAO.h"
34 #include "WGEPostprocessor.h"
40 m_properties( boost::shared_ptr<
WProperties >( new
WProperties(
"Settings for " + name,
"Post-processing properties" ) ) ),
42 m_description( description )
45 m_effectOnly =
m_properties->addProperty(
"Effect Only",
"If active, the plain effect will be shown instead a combination of effect "
46 "and color. This settings does not affect all postprocessors.",
false );
50 "WGE_POSTPROCESSOR_OUTPUT_COMBINE",
"WGE_POSTPROCESSOR_OUTPUT_EFFECT_ONLY" ) );
87 m_colorTexture = from[0];
91 m_normalTexture = from[1];
95 m_parameterTexture = from[2];
99 m_tangentTexture = from[3];
101 if( from.size() > 4 )
107 osg::ref_ptr< osg::Texture2D > normal,
108 osg::ref_ptr< osg::Texture2D > parameter,
109 osg::ref_ptr< osg::Texture2D > tangent,
110 osg::ref_ptr< osg::Texture2D > depth ):
111 m_colorTexture( color ),
112 m_normalTexture( normal ),
113 m_parameterTexture( parameter ),
114 m_tangentTexture( tangent ),
123 buf.
m_normalTexture = from->attach( osg::Camera::COLOR_BUFFER1, GL_RGB );
133 to->bind( m_colorTexture, 0 );
134 to->bind( m_normalTexture, 1 );
135 to->bind( m_parameterTexture, 2 );
137 to->bind( m_tangentTexture, 4 );