Skip to content
  • Niklas Haas's avatar
    shaders: add high quality dithering · aa04f95b
    Niklas Haas authored
    The algorithm is ported from mpv; with some minor modifications (AVLFG
    -> rand()). Blue noise is internally preferred wherever possiblle, with
    ordered LUT being an alternative - and falling back to fixed function
    ordered and finally white noise when LUTs are not available.
    
    Also contains some minor other modifications (maximum shader literal LUT
    size, maximum dither depth)
    aa04f95b