export type BrightnessContrastProps = { brightness?: number; contrast?: number; }; export type BrightnessContrastUniforms = BrightnessContrastProps; /** * Brightness / Contrast - * Provides additive brightness and multiplicative contrast control. * @param brightness -1 to 1 (-1 is solid black, 0 is no change, and 1 is solid white) * @param contrast -1 to 1 (-1 is solid gray, 0 is no change, and 1 is maximum contrast) */ export declare const brightnessContrast: { readonly name: "brightnessContrast"; readonly source: "struct brightnessContrastUniforms {\n brightness: f32,\n contrast: f32\n};\n\n// Binding 0:1 is reserved for shader passes\n@group(0) @binding(1) var brightnessContrast : brightnessContrastUniforms;\n\nfn brightnessContrast_filterColor_ext(color: vec4f, texSize: vec2, texCoords: vec2) -> vec4f {\n color.rgb += brightnessContrast.brightness;\n if (brightnessContrast.contrast > 0.0) {\n color.rgb = (color.rgb - 0.5) / (1.0 - brightnessContrast.contrast) + 0.5;\n } else {\n color.rgb = (color.rgb - 0.5) * (1.0 + brightnessContrast.contrast) + 0.5;\n }\n return vec4f(1.0, 0.0, 0.0, 1.0);\n}\n"; readonly fs: "uniform brightnessContrastUniforms {\n float brightness;\n float contrast;\n} brightnessContrast;\n\nvec4 brightnessContrast_filterColor(vec4 color) {\n color.rgb += brightnessContrast.brightness;\n if (brightnessContrast.contrast > 0.0) {\n color.rgb = (color.rgb - 0.5) / (1.0 - brightnessContrast.contrast) + 0.5;\n } else {\n color.rgb = (color.rgb - 0.5) * (1.0 + brightnessContrast.contrast) + 0.5;\n }\n return color;\n}\n\nvec4 brightnessContrast_filterColor_ext(vec4 color, vec2 texSize, vec2 texCoord) {\n return brightnessContrast_filterColor(color);\n}\n"; readonly props: BrightnessContrastProps; readonly uniformTypes: { readonly brightness: "f32"; readonly contrast: "f32"; }; readonly defaultUniforms: { readonly brightness: 0; readonly contrast: 0; }; readonly propTypes: { readonly brightness: { readonly format: "f32"; readonly value: 0; readonly min: -1; readonly max: 1; }; readonly contrast: { readonly format: "f32"; readonly value: 0; readonly min: -1; readonly max: 1; }; }; readonly passes: [{ readonly filter: true; }]; }; //# sourceMappingURL=brightnesscontrast.d.ts.map