16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 01:19:19 +02:00

shaders correction for burnt colors

This commit is contained in:
2026-04-26 00:18:02 +02:00
parent bc0e4a9e62
commit 76effe72df
4 changed files with 31 additions and 8 deletions

View File

@@ -42,6 +42,10 @@ vec3 filmic(vec3 x)
vec4 tonemap(vec4 x)
{
// return FBOUT(vec4(ACESFilm(x.rgb), x.a));
return FBOUT(vec4(reinhard(x.rgb), x.a));
// Use ACES Filmic by default. Reinhard above kept for reference, but
// with pureWhite=1.0 it collapses to identity (L*(1+L)/(1+L) = L) and
// just clips HDR>1.0 at the framebuffer -> washed-out / burnt look.
// ACES gives a smooth highlight shoulder + slight toe contrast.
return FBOUT(vec4(ACESFilm(x.rgb), x.a));
// return FBOUT(vec4(reinhard(x.rgb), x.a));
}