Give every mask its own tone curve.
Local masks could only shift tone globally, so a burnt sky or a backlit face had to fight the frame-wide sliders. Each mask now carries an RGB point curve, applied to the masked pixels before the mask blend. All eight curves ride in one 256×8 LUT texture, so the grade shader needs a single extra sampler rather than eight. Masks saved before this exist migrate to an identity curve, so old edits keep their look; the render check fails if the curve stops reaching the grade, and a unit test pins the LUT's identity, per-row isolation and monotonicity. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -86,6 +86,11 @@ export interface LocalLayer {
|
||||
hueRange: number;
|
||||
satMin: number;
|
||||
};
|
||||
/**
|
||||
* Per-mask RGB tone curve, applied to the masked pixels only. Identity for
|
||||
* masks created before this existed, so old edits keep their look.
|
||||
*/
|
||||
curve: CurvePoint[];
|
||||
adjust: {
|
||||
exposure: number;
|
||||
contrast: number;
|
||||
|
||||
Reference in New Issue
Block a user