Skip to content

shaders/colorspace: simplify iir_coeff math

Niklas Haas requested to merge haasn/libplacebo:peak_period_0 into master

The old trigonometric expression was needlessly complicated when the math here is just equivalent to a normal exponential decay.

As a side note, handle the case of rate = 0 ("infinite" cutoff frequench) correctly.

Merge request reports