UNPKG

@thi.ng/shader-ast-stdlib

Version:

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

6 lines (5 loc) 160 B
import { max } from "@thi.ng/shader-ast/builtin/math"; const sdfIntersect = (a, ...terms) => terms.reduce((a2, b) => max(a2, b), a); export { sdfIntersect };