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).
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).