pex-renderer icon indicating copy to clipboard operation
pex-renderer copied to clipboard

Add ACES tonemapping

Open vorg opened this issue 5 years ago • 2 comments

Default Uncharted2 screen shot 2019-03-07 at 18 06 53

ACES screen shot 2019-03-07 at 18 07 45

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);
}

vorg avatar Mar 07 '19 09:03 vorg

Have you tried this implementation: https://github.com/TheRealMJP/BakingLab/blob/master/BakingLab/ACES.hlsl

dmnsgn avatar Mar 21 '19 17:03 dmnsgn

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.

vorg avatar Aug 02 '19 15:08 vorg