cubos::engine::DeferredShading struct

Component which stores the Deferred Shading state for a render target.

Public variables

core::gl::Framebuffer frontFramebuffer
Framebuffer used to draw to the HDR texture.
core::gl::Framebuffer backFramebuffer
Framebuffer used to draw to the back HDR texture.
core::gl::Texture2D frontHDR
HDR texture present in the frontFramebuffer.
core::gl::Texture2D backHDR
HDR texture present in the backFramebuffer.

Variable documentation

core::gl::Framebuffer cubos::engine::DeferredShading::backFramebuffer

Framebuffer used to draw to the back HDR texture.

Swapped with frontFramebuffer as needed so that the textures match with the HDR component.