44#include <ACG/GL/acg_glew.hh>
46#include "PostProcessorSobelPlugin.hh"
48#include <ACG/GL/ScreenQuad.hh>
52PostProcessorSobelPlugin::PostProcessorSobelPlugin() :
57PostProcessorSobelPlugin::~PostProcessorSobelPlugin()
63QString PostProcessorSobelPlugin::postProcessorName() {
64 return QString(
"Sobel");
67void PostProcessorSobelPlugin::postProcess(
ACG::GLState* _glstate,
const std::vector<const PostProcessorInput*>& _input,
const PostProcessorOutput& _output) {
79 _input[0]->bindColorTex(0);
94 ACG::Vec2f texcoordOffset(1.0f /
float(_input[0]->width), 1.0f /
float(_input[0]->height));
static void draw(GLSL::Program *_prog=0)
Draw the screen quad.
void disable()
Resets to standard rendering pipeline.
void use()
Enables the program object for using.
void setUniform(const char *_name, GLint _value)
Set int uniform to specified value.
GLSL::Program * shader_
shader
GLSL::PtrProgram loadProgram(const char *vertexShaderFile, const char *tessControlShaderFile, const char *tessEvaluationShaderFile, const char *geometryShaderFile, const char *fragmentShaderFile, const GLSL::StringList *macros, bool verbose)