import type { Effect } from '../program.js'; /** * The slides are slabs of thick glass, as a lens is: the flat of it * magnifies a little, and its edge is a bevel, round as a pebble's, through * which the image is refracted as by glass (Snell's law, each colour a * little otherwise, most at the rim). It is lit by a light at the top left: * a bright line where the rim faces it, a fainter one where the light * leaves on the other side, a broad gleam on the bevel, the sheen of what * glass reflects at a slant (Fresnel), and a gloss over the flat with a * streak in it that moves when the glass does. The steep of the bevel is * darker, as thick glass is, most on the side away from the light. * * Glass after glass-effect-webgpu by jeantimex: its look, not its code. * * In the shader: `inside` is how far inside the outline of the slide a * point is, px, as the page cuts it (radius and corner shape), `n` which * way is out; `t` goes across the bevel from its flat to its rim, 0 to 1, * and `N` is the normal of a quarter of a circle there. * * @param options Options. * @param options.edge How wide the bevel of the glass is, px. * @param options.bend How much it bends the image. * @param options.spread How far the colours come apart. * @param options.shine How bright the light on it is. * @param options.zoom How much the flat magnifies. * @return Effect. */ export declare const slab: ({ edge, bend, spread, shine, zoom, }?: { edge?: number; bend?: number; spread?: number; shine?: number; zoom?: number; }) => Effect;