Skip to main content

ray_heightmap_intersect

Function ray_heightmap_intersect 

Source
pub fn ray_heightmap_intersect(
    hmap: &Heightmap,
    cell_size: f32,
    height_scale: f32,
    ray_origin: Vec3,
    ray_dir: Vec3,
) -> Option<RayHit>
Expand description

Ray-heightmap intersection using adaptive stepping