50 #include <ACG/GL/acg_glew.hh> 52 #include "PostProcessorDepthImagePlugin.hh" 54 #include <ACG/GL/ScreenQuad.hh> 59 PostProcessorDepthImagePlugin::PostProcessorDepthImagePlugin()
66 PostProcessorDepthImagePlugin::~PostProcessorDepthImagePlugin()
71 QString PostProcessorDepthImagePlugin::postProcessorName() {
72 return QString(
"Show Depth Image");
75 QString PostProcessorDepthImagePlugin::checkOpenGL()
78 return QString(
"Insufficient OpenGL Version! OpenGL 3.0 or higher required");
84 void PostProcessorDepthImagePlugin::postProcess(
ACG::GLState* _glstate,
const std::vector<const PostProcessorInput*>& _input,
const PostProcessorOutput& _output) {
96 _input[0]->bindDepthTex(0);
109 shader_->setUniform(
"textureSampler", 0);
120 #if QT_VERSION < 0x050000
static void draw(GLSL::Program *_prog=0)
Draw the screen quad.
GLSL::PtrProgram loadProgram(const char *vertexShaderFile, const char *tessControlShaderFile, const char *tessEvaluationShaderFile, const char *geometryShaderFile, const char *fragmentShaderFile, const GLSL::StringList *macros, bool verbose)
bool openGLVersion(const int _major, const int _minor)