nob_devignette (Compatible with IFFS 2024.1.0 and up)

Download this shader

This Matchbox shader compensates for vignetting.

Up to four reference points can be defined as radii and the respective gain compensation, optionally separate for red, green & blue colour channels. The vignetting centre is treated as an implicit fifth point with unchanged gain.
The shader calculates an even polynomial of eighth degree (in the radius from the vignetting centre) to interpolate those points.
This kind of interpolation may lead to undesired oscillations for higher numbers of data points. However with sensible spacing of radii and lens vignetting being a rather smooth function, so to say, oscillations or overshoot is hardly an issue.

Note that this shader does not perform any image scaling or reformatting, so the operation may be incorrect if the result image format does not match the input image format.
It is recommended to leave the canvas resolution as <Same As Input 1>.

This shader is licensed under the terms of the MIT license.

For questions contact:
nobbl211 _at_ gmail.com


Version notes

iterative update


Older versions that shader

25th of February this year, around 14:42

Download

iterative update

24th of February this year, around 01:16

Download

fixed off-centreing

22th of February this year, around 21:55

Download

improved processing pipeline through use of texelFetch

21th of February this year, around 20:36

Download

iterative update


comments powered by Disqus