pub fn ray_march<S: Sdf>(
sdf: &S,
origin: [f64; 3],
direction: [f64; 3],
max_steps: u32,
max_t: f64,
surf_eps: f64,
) -> RayMarchResultExpand description
March a ray defined by origin + t * direction through an SDF.
max_steps– step budget.max_t– maximum travel distance.surf_eps– surface-hit threshold.
Uses the sphere-tracing algorithm (Hart 1996).