33#include "vtkRenderingOpenGL2Module.h"
abstract class specifies interface to map data
vtkImageProcessingPass()
Default constructor.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
Internal class which encapsulates OpenGL FramebufferObject.
Class to make rendering a full screen quad easier.
The VertexArrayObject class uses, or emulates, vertex array objects.
abstract superclass for all actors, volumes and annotations
Context in which a vtkRenderPass will render.
static vtkSSAOPass * New()
bool PostReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop) override
Post replace shader values.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLQuadHelper * CombineQuadHelper
bool PreReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop) override
Pre replace shader values.
~vtkSSAOPass() override=default
void RenderDelegate(const vtkRenderState *s, int w, int h)
void Render(const vtkRenderState *s) override
Perform rendering according to a render state.
vtkOpenGLFramebufferObject * FrameBufferObject
void RenderCombine(vtkOpenGLRenderWindow *renWin)
vtkTextureObject * ColorTexture
vtkTextureObject * DepthTexture
vtkTextureObject * PositionTexture
vtkTextureObject * SSAOTexture
vtkTextureObject * NormalTexture
void InitializeGraphicsResources(vtkOpenGLRenderWindow *renWin, int w, int h)
vtkOpenGLQuadHelper * SSAOQuadHelper
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
std::vector< float > Kernel
void RenderSSAO(vtkOpenGLRenderWindow *renWin, vtkMatrix4x4 *projection, int w, int h)
bool SetShaderParameters(vtkShaderProgram *program, vtkAbstractMapper *mapper, vtkProp *prop, vtkOpenGLVertexArrayObject *VAO=nullptr) override
Set shader parameters.
Computes the portion of a dataset which is inside a selection.
The ShaderProgram uses one or more Shader objects.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow