44 #include <ACG/GL/acg_glew.hh> 46 #include "PostProcessorDepthImagePlugin.hh" 48 #include <ACG/GL/ScreenQuad.hh> 53 PostProcessorDepthImagePlugin::PostProcessorDepthImagePlugin()
60 PostProcessorDepthImagePlugin::~PostProcessorDepthImagePlugin()
65 QString PostProcessorDepthImagePlugin::postProcessorName() {
66 return QString(
"Show Depth Image");
69 QString PostProcessorDepthImagePlugin::checkOpenGL()
72 return QString(
"Insufficient OpenGL Version! OpenGL 3.0 or higher required");
78 void PostProcessorDepthImagePlugin::postProcess(
ACG::GLState* _glstate,
const std::vector<const PostProcessorInput*>& _input,
const PostProcessorOutput& _output) {
90 _input[0]->bindDepthTex(0);
103 shader_->setUniform(
"textureSampler", 0);
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, bool _verbose)