Files
wgpu/examples/features/src/ray_aabb_compute
renovate[bot]andConnor Fitzgerald f00ee73afc Update Cargo.lock (#10330)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-09-14 21:10:55 +00:00
..
2026-09-14 21:10:55 +00:00

ray-aabb

This example ray-traces AABB geometry from an acceleration structure, then turns each hit into a sphere: the compute shader uses hardware ray queries for the AABBs, fits a sphere inside each box, and resolves it with ray-sphere intersection.

NOTE: The Metal backend does not support AABB intersections in ray queries yet, so this example will not work.

To Run

cargo run --bin wgpu-examples ray_aabb_compute

Screenshots

ray-aabb example