import { colorGradePixels } from "../../PostProcessPass.js";
import { applyThreeCompatPixelKernel } from "./PostProcessTypes.js";
export class ColorGradingPassThreeCompat {
    contrast;
    saturation;
    name = "ColorGradingPass";
    enabled = true;
    constructor(contrast = 1.16, saturation = 1.08) {
        this.contrast = contrast;
        this.saturation = saturation;
    }
    apply(frame) {
        return applyThreeCompatPixelKernel({ ...frame, contrast: frame.contrast * this.contrast, saturation: frame.saturation * this.saturation }, this.name, (pixels, width, height) => colorGradePixels(pixels, width, height, { contrast: this.contrast, saturation: this.saturation, vibrance: 0.12, vignette: 0.1, sharpening: 0.12 }).pixels, "colorGradePixels kernel");
    }
}
//# sourceMappingURL=ColorGradingPass.js.map