27 #include "../shaders/WGEPropertyUniform.h"
29 #include "WGEPostprocessorCelShading.h"
33 "This postprocessor reduces color by binning colors." )
40 "This postprocessor reduces color by binning colors." )
43 WPropInt bins =
m_properties->addProperty(
"Number of Bins",
"The number of color bins used for cel shading.", 10 );
54 s->setDefine(
"WGE_POSTPROCESSOR_CEL" );
60 osg::ref_ptr< WGEOffscreenTexturePass > pass = offscreen->addTextureProcessingPass( s,
"Cel Shading" );
64 m_resultTextures.push_back( pass->attach( osg::Camera::COLOR_BUFFER0, GL_RGBA ) );