Apply the lens vignetting gain in linear light.
Lensfun's vignetting coefficients describe linear transmission, so multiplying them into the sRGB-encoded proxy brightened the corners far more than the lens had lost and over-exposed the edges. The gain now runs after the decode, in both the grade and the eyedropper. Existing records that stored the old auto-enabled flag are cleared once, on the server catalogue at boot and in the browser cache on its next IndexedDB upgrade, and the Optics panel says when the correction is off.
This commit is contained in:
@@ -140,7 +140,11 @@ export interface MapSet {
|
||||
geometry: Float32Array;
|
||||
/** 6 floats per point: red x/y, input x/y, blue x/y. */
|
||||
tca?: Float32Array;
|
||||
/** 3 floats per point: the same gain for R, G and B. */
|
||||
/**
|
||||
* 3 floats per point: the same gain for R, G and B. Lensfun's vignetting
|
||||
* model describes linear light, so the renderer must apply this after the
|
||||
* sRGB decode rather than to encoded code values.
|
||||
*/
|
||||
vignetting?: Float32Array;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user