42 viewportSize = Eigen::Vector2i(currentWidth, currentHeight);
47 virtual void initialize();
50 virtual void render(Mesh* mesh = NULL, Trackball* cameraTrackball = NULL, Trackball* lightTrackball = NULL);
53 virtual void reloadShaders();
56 return firstPassShader;
63 delete firstPassShader;
71 delete thirdPassShader;
83 void setOpenGLMatricesUniforms(Shader* currentShader, Trackball* cameraTrackball, Trackball* lightTrackball);
Shader * getFirstPassShader()
Definition: computeShaderTest.hpp:55
ComputeShaderTest(const char *name, int currentWidth, int currentHeight)
Default Constructor:
Definition: computeShaderTest.hpp:39
Shader * firstPassShader
Shader used to offscreen rendering.
Definition: computeShaderTest.hpp:92
Definition: computeShaderTest.hpp:34
Framebuffer * fbo
Framebuffer.
Definition: computeShaderTest.hpp:101
~ComputeShaderTest()
Default destructor. Just deletes the shaders and destroy the buffers.
Definition: computeShaderTest.hpp:60
Shader * thirdPassShader
Shader used in back-buffer rendering.
Definition: computeShaderTest.hpp:98
GLuint finalImage
Image to store the compute shader manipulations.
Definition: computeShaderTest.hpp:107
Shader * shader
Compute shader.
Definition: computeShaderTest.hpp:95
GLuint ssbo
Shader Storage Buffer Object.
Definition: computeShaderTest.hpp:104
Shader * getShader()
Definition: computeShaderTest.hpp:76