pex-renderer
pex-renderer copied to clipboard
Add ACES tonemapping
Default Uncharted2
ACES
It's not only much more saturated but also much brighter? (check gamma)
vec3 tonemapAces( vec3 x ) {
float tA = 2.5;
float tB = 0.03;
float tC = 2.43;
float tD = 0.59;
float tE = 0.14;
return clamp((x*(tA*x+tB))/(x*(tC*x+tD)+tE),0.0,1.0);
}
Have you tried this implementation: https://github.com/TheRealMJP/BakingLab/blob/master/BakingLab/ACES.hlsl
Even more options here https://github.com/dmnsgn/glsl-tone-map although i'm happy to stick to one default like ACES and make it easy to replace it (e.g. by calling the chunk tonemap
) vs shipping multiple options.