17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-08 23:07:38 +01:00

Add a white balance to the tonemapping

This commit is contained in:
2026-10-27 01:40:19 +01:00
parent 82d3842495
commit ac0b4e5f15
13 changed files with 122 additions and 6 deletions

View File

@@ -37,6 +37,8 @@ struct exposure_settings
static glm::vec4 bloom_params(std::size_t const Level);
// parameters of the tonemapping (postfx_tonemapping.frag), with bloom from a chain of Bloomlevels levels (0: none)
static glm::vec4 tonemap_params(std::size_t const Bloomlevels);
// white balance of the tonemapping (gfx.postfx.whitebalance*): gains of the cone responses (bradford), 0 when off
static glm::vec3 white_balance();
// controls of the debug window; Readback: the adapted luminance, the exposure and the average luminance the gpu worked out
static void draw_debug_ui(float const *Readback);
};