@thi.ng/shader-ast-stdlib
Version:
Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast
13 lines • 578 B
TypeScript
import type { RaymarchScene } from "../api.js";
/**
* Higher order function returning an function to compute the Ambient Occlusion
* term / shadow factor for given SDF scene function. The returned function
* takes 2 arguments: surface pos and normal. It returns a float in `[0,1]`
* interval (zero = fully occluded).
*
* @param scene -
* @param numSamples -
* @param name -
*/
export declare const raymarchAO: (scene: RaymarchScene, numSamples?: number, name?: string) => import("@thi.ng/shader-ast").TaggedFn2<"vec3", "vec3", "float">;
//# sourceMappingURL=ao.d.ts.map