Global Variables in main.cpp
Shader Ids
GLuint bloomrenderShader;
GLuint bloomfilterShader;
GLuint bloomblurShader;
GLuint bloomblendShader;Window size and bloom framebuffer size
int width = 800;
int height = 800;
int bloomBufWidth;
int bloomBufHeight;Framebuffer ID and texture ID
// framebuffer ID
GLuint colourFBO, blurFBO;
// render texture ID and blurring buffer ID
GLuint colourTex, blurtex[2];The square mesh for rendering full screen texture
In addition, we are going to move the scene as a global variable
With Scene Graph
Without Scene Graph, e.g. use the teapot directly
Last updated