import { colorGradePixels } from "../../PostProcessPass.js";
import { applyThreeCompatPixelKernel } from "./PostProcessTypes.js";
export class VignettePassThreeCompat {
    amount;
    name = "VignettePass";
    enabled = true;
    constructor(amount = 0.22) {
        this.amount = amount;
    }
    apply(frame) {
        return applyThreeCompatPixelKernel({ ...frame, vignette: frame.vignette + this.amount }, this.name, (pixels, width, height) => colorGradePixels(pixels, width, height, { vignette: this.amount, contrast: 1.02, saturation: 1 }).pixels, "colorGradePixels vignette kernel");
    }
}
//# sourceMappingURL=VignettePass.js.map