44#include <ACG/GL/acg_glew.hh>
46#include "PostProcessorDepthImagePlugin.hh"
48#include <ACG/GL/ScreenQuad.hh>
53PostProcessorDepthImagePlugin::PostProcessorDepthImagePlugin()
60PostProcessorDepthImagePlugin::~PostProcessorDepthImagePlugin()
65QString PostProcessorDepthImagePlugin::postProcessorName() {
66 return QString(
"Show Depth Image");
69QString PostProcessorDepthImagePlugin::checkOpenGL()
72 return QString(
"Insufficient OpenGL Version! OpenGL 3.0 or higher required");
78void PostProcessorDepthImagePlugin::postProcess(
ACG::GLState* _glstate,
const std::vector<const PostProcessorInput*>& _input,
const PostProcessorOutput& _output) {
90 _input[0]->bindDepthTex(0);
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
bool openGLVersion(const int _major, const int _minor, bool _verbose)
GLSL::PtrProgram loadProgram(const char *vertexShaderFile, const char *tessControlShaderFile, const char *tessEvaluationShaderFile, const char *geometryShaderFile, const char *fragmentShaderFile, const GLSL::StringList *macros, bool verbose)