void resolveStereoAnyglyph(int _viewerID)
Resolve stereo buffers as anaglyph.
int setupScene(int _viewerID, int _width, int _height, int _samples=0, int _stereoEye=-1)
Bind fbo for scene rendering.
void postProcess(int _viewerID, ACG::GLState *_glstate, const ACG::GLMatrixd &_modelview, const ACG::GLMatrixd &_proj1, const ACG::GLMatrixd &_proj2, bool _hwOpenGLStereo=false)
Perform all post processing.
ACG::FBO procFBO_[2]
post-processing read/write FBOs, no msaa
ACG::FBO sceneFBO_[2]
FBO for scene rendering, one for each eye in stereo mode, possibly multisampled.
GLuint backbufferFBO_
backbuffer output, not owned by this class
ACG::FBO stereoFBO_[2]
store post processing results for each stereo eyes, input for anaglyph processor, no msaa ...
int debugLevel_
perform extra checks for debugging: 0 -> no checks, 1 -> fast checks, 2 -> more checks etc...
bool stereoMode_
postprocessing in stereo mode
int numProcessors() const
Number of post processors.