import { outlinePixels } from "../../PostProcessPass.js";
import { applyThreeCompatPixelKernel } from "./PostProcessTypes.js";
export class OutlinePassThreeCompat {
    strength;
    name = "OutlinePass";
    enabled = true;
    constructor(strength = 0.5) {
        this.strength = strength;
    }
    apply(frame) {
        return applyThreeCompatPixelKernel({ ...frame, outlines: frame.outlines + this.strength }, this.name, (pixels, width, height) => outlinePixels(pixels, width, height, {
            threshold: 0.08,
            width: 2,
            opacity: Math.min(1, 0.45 + this.strength * 0.5),
            color: [64, 190, 255, 255]
        }).pixels, "outlinePixels kernel");
    }
}
//# sourceMappingURL=OutlinePass.js.map