Closed ikskuh closed 2 years ago
It should be specified in which color space and color format the interpolation should happen:
The most widespread one is probably "linear RGB interpolation", so this would be a good choice here.
The math for gradient blending is fairly easy and i've implemented a verification shader on shadertoy.com.
Colors need to be interpolated in linear color space and require gamma application after that:
NOTE: This image must be viewed without any scaling! Otherwise the bayer dithering won't work properly
Fixed.