diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-15 11:40:15 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-15 11:40:15 +0100 |
| commit | aa58489ffb597fc981fd779e9ce8b54f32e48197 (patch) | |
| tree | 2f62d525ae38c68745487751dd0418ec6212a5e0 /common/shaders/render | |
| parent | 174b318c4f2a896f3d2d30bc5a7eee2b876e0369 (diff) | |
misc updates
Diffstat (limited to 'common/shaders/render')
| -rw-r--r-- | common/shaders/render/raymarching.wgsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/shaders/render/raymarching.wgsl b/common/shaders/render/raymarching.wgsl index 3adec8d..7d05528 100644 --- a/common/shaders/render/raymarching.wgsl +++ b/common/shaders/render/raymarching.wgsl @@ -26,8 +26,8 @@ fn normal(pos: vec3<f32>) -> vec3<f32> { // Performs the raymarching operation. // Returns the distance along the ray to the surface, or MAX_RAY_LENGTH if no surface is hit. -fn rayMarch(ro: vec3<f32>, rd: vec3<f32>, initt: f32) -> f32 { - var t = initt; +fn rayMarch(ro: vec3<f32>, rd: vec3<f32>, tmin: f32) -> f32 { + var t = tmin; for (var i = 0; i < MAX_RAY_MARCHES; i++) { if (t > MAX_RAY_LENGTH) { t = MAX_RAY_LENGTH; |
