Fix tone mapping being always enabled

broke in 579fc93c24b030e33a6255d96e773706f6e99c93
This commit is contained in:
sfan5 2022-10-09 19:11:04 +02:00
parent 9676364c1f
commit 7a28f2c4fa

@ -30,7 +30,7 @@ vec4 applyBloom(vec4 color, vec2 uv)
#endif
#ifdef ENABLE_TONE_MAPPING
#if ENABLE_TONE_MAPPING
/* Hable's UC2 Tone mapping parameters
A = 0.22;
@ -84,7 +84,7 @@ void main(void)
if (uv.x > 0.5 || uv.y > 0.5)
#endif
{
#ifdef ENABLE_TONE_MAPPING
#if ENABLE_TONE_MAPPING
color = applyToneMapping(color);
#else
color.rgb /= 2.5; // default exposure factor, see also RenderingEngine::DEFAULT_EXPOSURE_FACTOR;