Skip to content

shaders/colorspace: add lower bound to peak detection

Niklas Haas requested to merge min_peak into master

It really makes little sense to auto-detect peaks below SDR nominal white. If this happens, it's far more likely that the scene is simply dark (or black), and we should avoid over-compensating the tone mapping for this scenario.

Fix it by adding a configurable lower bound, defaulting to 1.0.

Closes #161 (closed)

Merge request reports