shaders/sampling: enable antiringing for EWA scalers (V2)
- Jul 28, 2023
-
-
Niklas Haas authored
Very hard to get precise controls here.
5ef779c7 -
Niklas Haas authored
Based on two-pass design where the main interpolation kernel is combined with a smaller, second gaussian (non-ringing) filter, with high exponent (hard-coded as 8 for performance/quality reasons) to bias it towards low/high values respectively. This is unfortunately rather slow (about 50% slowdown), but much, much higher quality than all other approaches I came across. It may be possible to optimize it slightly more, (or just drop the numbers to make it faster at the cost of quality), but for now, this represents a vast quality improvement over the status quo of no antiringing.
05818283 -
Niklas Haas authored
More appropriate name, since it represents the minimum radius this texel can possibly have.
c1912a9c -
Niklas Haas authored
No real reason here but it will make adding more logic easier.
40a325fe -
Niklas Haas authored
Normalizes the two branches by simply assigning to `c` in the `in` branch.
a8d5b306
-