28 #include "WGEPostprocessorEdgeEnhance.h"
29 #include "WGEPostprocessorCelShading.h"
30 #include "WGEPostprocessorGauss.h"
31 #include "WGEPostprocessorSSAO.h"
32 #include "WGEPostprocessorLineAO.h"
34 #include "WGEPostprocessor.h"
42 m_properties( boost::shared_ptr<
WProperties >( new
WProperties(
"Settings for " + name,
"Post-processing properties" ) ) ),
44 m_description( description )
47 m_effectOnly =
m_properties->addProperty(
"Effect Only",
"If active, the plain effect will be shown instead a combination of effect "
48 "and color. This settings does not affect all postprocessors.",
false );
49 m_effectScale =
m_properties->addProperty(
"Effect Scaling",
"Use this to overemphasize an effect or to weaken it. Technically spoken, this "
50 "factor determines the pre-multiplication done prior to blending with the input color.", 1.0,
57 "WGE_POSTPROCESSOR_OUTPUT_COMBINE",
"WGE_POSTPROCESSOR_OUTPUT_EFFECT_ONLY" ) );
94 m_colorTexture = from[0];
98 m_normalTexture = from[1];
100 if( from.size() > 2 )
102 m_parameterTexture = from[2];
104 if( from.size() > 3 )
106 m_tangentTexture = from[3];
108 if( from.size() > 4 )
115 osg::ref_ptr< osg::Texture2D > normal,
116 osg::ref_ptr< osg::Texture2D > parameter,
117 osg::ref_ptr< osg::Texture2D > tangent,
118 osg::ref_ptr< osg::Texture2D > depth ):
119 m_colorTexture( color ),
120 m_normalTexture( normal ),
121 m_parameterTexture( parameter ),
122 m_tangentTexture( tangent ),
131 buf.
m_normalTexture = from->attach( WGECamera::COLOR_BUFFER1, GL_RGB );
141 to->bind( m_colorTexture, 0 );
142 to->bind( m_normalTexture, 1 );
143 to->bind( m_parameterTexture, 2 );
145 to->bind( m_tangentTexture, 4 );