pub fn sphere_trace(
grid: &SdfGrid,
ray_origin: [f64; 3],
ray_direction: [f64; 3],
max_t: f64,
max_iterations: usize,
surface_threshold: f64,
) -> SphereTraceResultExpand description
Perform sphere tracing (ray marching) against an SDF grid.
Traces a ray from origin in direction (must be unit-length)
until the SDF value is below surface_threshold or max_t is reached.