Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "raymarch/ao"

Index

Functions

Functions

Const raymarchAO

  • raymarchAO(scene: RaymarchScene, numSamples?: number): TaggedFn2<"vec3", "vec3", "float">
  • 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).

    Parameters

    Returns TaggedFn2<"vec3", "vec3", "float">

Generated using TypeDoc