• Harish Krupo's avatar
    gl-shaders: Add tone mapping shaders · 2d8018ae
    Harish Krupo authored
    This commit adds the following tone mapping shaders:
    
    HDR->HDR:
    ========
    The tone mapping employs linear luminance scaling based on the maximum
    display luminance. It appies the scaling as follows:
    
    Range = content_max_luma - content_min_luma
    out_luma = disp_max_luma * ( in_luma - content_min_luma / Range)
    
    SDR->HDR:
    ========
    The current implementation of SDR to HDR tone mapping shader uses a
    gamma function and produces a maximum output of 1000.0 nits.
    Signed-off-by: Harish Krupo's avatarHarish Krupo <harish.krupo.kps@intel.com>
    
    HDR->SDR:
    ========
    The HDR to SDR luminance mapping is applied using the hable tone mapping
    operator.
    Reference: http://filmicworlds.com/blog/filmic-tonemapping-operators/
    
    Luminance Scaling:
    =================
    This patch also adds shaders to scale/normalize luminance based on the
    encoded eotf/oetf curve.
    Signed-off-by: Harish Krupo's avatarHarish Krupo <harish.krupo.kps@intel.com>
    2d8018ae
Name
Last commit
Last update
.gitlab-ci Loading commit data...
clients Loading commit data...
compositor Loading commit data...
data Loading commit data...
desktop-shell Loading commit data...
doc Loading commit data...
fullscreen-shell Loading commit data...
include Loading commit data...
ivi-shell Loading commit data...
libweston Loading commit data...
libweston-desktop Loading commit data...
man Loading commit data...
protocol Loading commit data...
remoting Loading commit data...
shared Loading commit data...
tests Loading commit data...
tools/zunitc Loading commit data...
wcap Loading commit data...
xwayland Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
notes.txt Loading commit data...
releasing.txt Loading commit data...
weston.ini.in Loading commit data...