UNPKG

@thi.ng/shader-ast-stdlib

Version:

Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast

9 lines 330 B
/** * Returns signed distance from `p` to 2D hexagon of given radius `r`. * * @remarks * Ported from original GLSL impl by Inigo Quilez: * https://iquilezles.org/articles/distfunctions2d/ */ export declare const sdfHexagon2: import("@thi.ng/shader-ast").TaggedFn2<"vec2", "float", "float">; //# sourceMappingURL=hex.d.ts.map