Crafter.Graphics/examples/VulkanTriangle/miss.wgsl

9 lines
303 B
WebGPU Shading Language
Raw Normal View History

2026-07-22 18:09:06 +02:00
//SPDX-License-Identifier: MIT
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// 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
}