@thi.ng/shader-ast-stdlib
Version:
Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast
13 lines • 487 B
TypeScript
import type { FloatTerm, Term, Vec } from "@thi.ng/shader-ast";
/**
* Inline function. Returns point on ray (`p`, `dir`) at distance `t`.
* Unless `norm` is true (default false), `dir` must be already
* normalized.
*
* @param p -
* @param dir -
* @param t -
* @param normalize -
*/
export declare const rayPointAt: <A extends Vec, B extends A>(p: Term<A>, dir: Term<B>, t: FloatTerm, norm?: boolean) => import("@thi.ng/shader-ast").Op2<A>;
//# sourceMappingURL=point-at.d.ts.map