Crafter.Graphics/examples/VulkanTriangle/miss.wgsl

6 lines
214 B
WebGPU Shading Language
Raw Permalink Normal View History

// Wavefront miss: runs in SHADE for rays that hit nothing. Accumulate the
// white background directly.
2026-05-18 18:43:30 +02:00
fn miss_main(ray: RayDesc, payload: ptr<function, Payload>) {
rtAccumulate(vec3<f32>(1.0, 1.0, 1.0));
2026-05-18 18:43:30 +02:00
}