SPDX license update
This commit is contained in:
parent
a879c834c7
commit
42a479572d
181 changed files with 1328 additions and 1392 deletions
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
#version 460
|
||||
#extension GL_EXT_buffer_reference : enable
|
||||
#extension GL_EXT_scalar_block_layout : enable
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// Issue #37: GPU producer (WebGPU) for the procedural AABB build input.
|
||||
// Writes the per-box bounding boxes straight into a device storage buffer
|
||||
// that Mesh::BuildProcedural / RefitProcedural then consume by handle, with
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
#version 460
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume any-hit shader (runs in TRACE on every candidate sphere hit,
|
||||
// because the geometry is registered non-opaque). Punches a spherical
|
||||
// checkerboard of holes: for half the cells it returns RT_ANYHIT_IGNORE,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
#version 460
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume closest-hit (runs in SHADE). Shades the procedural sphere by
|
||||
// its surface normal with a fixed sun + ambient, tinted per instance.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
#version 460
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume intersection shader (runs in TRACE, per AABB the ray enters).
|
||||
// Analytic ray-sphere test: the unit box [-1,1]^3 is treated as the
|
||||
// bounding volume of a sphere of radius 1 centred at the box centre. The
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume — procedural (AABB) ray tracing on both backends. Demonstrates
|
||||
// the two features this example was written to exercise:
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
#version 460
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume miss (runs in SHADE). Vertical sky gradient — also what shows
|
||||
// through the any-hit cut-out cells.
|
||||
fn miss_main(ray: RayDesc, payload: ptr<function, Payload>) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
import std;
|
||||
import Crafter.Build;
|
||||
namespace fs = std::filesystem;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
#version 460
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
#extension GL_EXT_shader_image_load_formatted : enable
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume raygen (runs in GENERATE). Host-driven pinhole camera at
|
||||
// @group(3) (groups 0..2 are reserved by the wavefront pipeline:
|
||||
// 0 = WfParams, 1 = data heaps, 2 = indirect args).
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//SPDX-License-Identifier: MIT
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// RTVolume RESOLVE-stage tonemap: Reinhard + gamma 2.2 over the linear
|
||||
// accumulator.
|
||||
fn resolve_main(coord: vec2<u32>, hdr: vec4<f32>) -> vec4<f32> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue