From bcfc36d11bea6ed9cc18f8976d7d19a83ad4ca77 Mon Sep 17 00:00:00 2001 From: As7tesia <96354176+As7tesia@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:44:49 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index fc7863a..863d2d6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,24 @@ # lab02-debugging +# Shader Link +https://www.shadertoy.com/view/WcXfWl +Help received from: Aidan G and Kevin D + +# Identified Bugs: + +## in main +vec uv2 = 2.0 * uv - vec2(1.0); this line has vec instead of vec2 +raycast(uv, dir, eye, ref); uv here should be uv2 + +## in raycast() +H *= len * iResolution.x / iResolution.x; should be dividing by iResolution.y + +## in Intersection sdf3D() +dir = reflect(eye, nor); should be dir = reflect(dir, nor) + +## in march() +for(int i = 0; i < 64; ++i) ; this 64 limit should be larger, so that it has more samples to reach the further floor, something like 256; + # Setup Create a [Shadertoy account](https://www.shadertoy.com/). Either fork this shadertoy, or create a new shadertoy and copy the code from the [Debugging Puzzle](https://www.shadertoy.com/view/flGfRc). From 1c52b2f80ffb9e1a9ab723bf9f589bee9ca1df10 Mon Sep 17 00:00:00 2001 From: As7tesia <96354176+As7tesia@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:46:44 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 863d2d6..2d632b8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Help received from: Aidan G and Kevin D # Identified Bugs: ## in main -vec uv2 = 2.0 * uv - vec2(1.0); this line has vec instead of vec2 +vec uv2 = 2.0 * uv - vec2(1.0); this line has vec instead of vec2
raycast(uv, dir, eye, ref); uv here should be uv2 ## in raycast() From b4913b28b8eb526713285703d4622be62f0d3317 Mon Sep 17 00:00:00 2001 From: As7tesia <96354176+As7tesia@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:47:47 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d632b8..f4c179f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Help received from: Aidan G and Kevin D # Identified Bugs: ## in main -vec uv2 = 2.0 * uv - vec2(1.0); this line has vec instead of vec2
+vec uv2 = 2.0 * uv - vec2(1.0); this line has vec instead of vec2
raycast(uv, dir, eye, ref); uv here should be uv2 ## in raycast()