9 lines
303 B
WebGPU Shading Language
9 lines
303 B
WebGPU Shading Language
//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.
|
|
|
|
fn miss_main(ray: RayDesc, payload: ptr<function, Payload>) {
|
|
rtAccumulate(vec3<f32>(1.0, 1.0, 1.0));
|
|
}
|