diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-21 09:33:40 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-21 09:33:40 +0100 |
| commit | 1dad17db104f671aa0e913143a95826078892ed5 (patch) | |
| tree | 6625feccf9d08cf22a438a9027a81d913bb4798a /workspaces/main/shaders/sdf_test.wgsl | |
| parent | 25dc87528915fb0fd89181333324b215d77ad014 (diff) | |
split raymarching.wgsl in two: with id, or without id.
Diffstat (limited to 'workspaces/main/shaders/sdf_test.wgsl')
| -rw-r--r-- | workspaces/main/shaders/sdf_test.wgsl | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/workspaces/main/shaders/sdf_test.wgsl b/workspaces/main/shaders/sdf_test.wgsl index 71310f2..3c97613 100644 --- a/workspaces/main/shaders/sdf_test.wgsl +++ b/workspaces/main/shaders/sdf_test.wgsl @@ -22,15 +22,6 @@ fn df(p: vec3<f32>) -> f32 { return min(d_sphere, d_box); } -// Two-pass distance function (required by raymarching.wgsl) -fn dfWithID(p: vec3<f32>) -> RayMarchResult { - var result: RayMarchResult; - result.distance = df(p); - result.distance_max = result.distance; - result.object_id = 0.0; - return result; -} - // Simple lighting fn shade(pos: vec3<f32>, rd: vec3<f32>) -> vec3<f32> { let n = normal(pos); |
