pub fn gpu_ray_sphere_intersect(
ray_origin: [f32; 3],
ray_dir: [f32; 3],
center: [f32; 3],
radius: f32,
) -> Option<f32>Expand description
Intersect a ray with a sphere.
Returns Some(t) for the nearest positive intersection, or None on miss.