docs(webgpu-rt): add RTVolume example (procedural spheres + any-hit cut-out)
A 3x3x3 grid of AABB-geometry spheres rendered through an analytic ray-sphere intersection shader, with an any-hit spherical-checkerboard cut-out so the background shows through. Exercises both features end to end on the WebGPU wavefront tracer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
1628e1a58c
commit
5dd1086f08
10 changed files with 420 additions and 1 deletions
|
|
@ -22,7 +22,11 @@ The two backends share the same C++ surface for the high-level pieces
|
|||
(`*Vulkan` vs `*WebGPU`) live behind `#ifdef CRAFTER_GRAPHICS_WINDOW_DOM`.
|
||||
Vulkan ray tracing is hardware (`VK_KHR_ray_tracing_pipeline`); WebGPU
|
||||
ray tracing is a library-built software path (BVH + traceRay in a
|
||||
compute pipeline composed from user-supplied WGSL stages).
|
||||
compute pipeline composed from user-supplied WGSL stages). The WebGPU
|
||||
path supports triangle and AABB (procedural, `VK_GEOMETRY_TYPE_AABBS_KHR`)
|
||||
geometry, closest-hit / miss / any-hit / intersection shaders — see
|
||||
[examples/RTVolume](examples/RTVolume/README.md) for procedural spheres
|
||||
shaded through an intersection shader with an any-hit cut-out.
|
||||
|
||||
> **Native RT status:** reading an acceleration structure through
|
||||
> `VK_EXT_descriptor_heap` currently aborts with `VK_ERROR_DEVICE_LOST` on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue