cubos::engine::HDR struct

Component which stores the HDR texture of a render target.

Public variables

glm::uvec2 size
Size of the HDR textures, in pixels.
core::gl::Texture2D frontTexture
Handle to the HDR texture to write to/read from.
core::gl::Texture2D backTexture
Handle to the HDR texture to be written to by post-processing plugins.

Variable documentation

core::gl::Texture2D cubos::engine::HDR::backTexture

Handle to the HDR texture to be written to by post-processing plugins.

Each effect should write to this texture and then swap it with frontTexture.