From d57c704ac6a646e05f60512f8a0fa7efdb27ce6c Mon Sep 17 00:00:00 2001 From: Christopher Yuen Date: Wed, 17 Sep 2025 11:45:30 -0400 Subject: [PATCH 1/4] Document debugging process and bug fixes in README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index fc7863a..4dcd876 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,15 @@ It don't do that. Correct THREE of the FIVE bugs that are messing up the output. Extra credit if you can find all FIVE bugs. +# Debugs +1) In mainImage() we never call uv2 so I just replaced 'vec uv2 = ...' with 'uv = ...' to fix the black screen. +2) In raycast(), we horizontal scale is messed up as it was 'iResolution.x / iResolution.x' which I fixed with 'iResolution.x / iResolution.y' which is the correct horizontal screen ratio. +3) In sdf3d(), to apply specular, we need to replace 'dir = reflect(eye, nor);' with 'dir = reflect(dir, nor);'. +4) In march(), to fix the floor not extending out as far as we want, change the value that i goes till. I replaced 'i < 64' with 'i < 200'. This also gets rid of the weird warping around the spheres. +5) + +Shadertoy: https://www.shadertoy.com/view/wcsfWf + # Submission - Create a pull request to this repository - In the README, include the names of both your team members From aac57e88f3fcdf7658523367a4c54b82d3e20138 Mon Sep 17 00:00:00 2001 From: Christopher Yuen Date: Wed, 17 Sep 2025 11:46:10 -0400 Subject: [PATCH 2/4] Update README with partner details and Shadertoy link --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4dcd876..b27554a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Extra credit if you can find all FIVE bugs. 4) In march(), to fix the floor not extending out as far as we want, change the value that i goes till. I replaced 'i < 64' with 'i < 200'. This also gets rid of the weird warping around the spheres. 5) +Partner: Marcus Shadertoy: https://www.shadertoy.com/view/wcsfWf # Submission From 85acd47bd422cbf2756ca5d453e0329a610b57ff Mon Sep 17 00:00:00 2001 From: Christopher Yuen Date: Wed, 17 Sep 2025 11:46:23 -0400 Subject: [PATCH 3/4] Fix partner line formatting in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b27554a..6b08958 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Extra credit if you can find all FIVE bugs. 4) In march(), to fix the floor not extending out as far as we want, change the value that i goes till. I replaced 'i < 64' with 'i < 200'. This also gets rid of the weird warping around the spheres. 5) -Partner: Marcus +Partner: Marcus \n Shadertoy: https://www.shadertoy.com/view/wcsfWf # Submission From 0e4ce68cf2d851e5048d41a1315408e111423e6e Mon Sep 17 00:00:00 2001 From: Christopher Yuen Date: Wed, 17 Sep 2025 11:46:46 -0400 Subject: [PATCH 4/4] Fix formatting and update partner information in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b08958..5bd1edb 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Extra credit if you can find all FIVE bugs. 4) In march(), to fix the floor not extending out as far as we want, change the value that i goes till. I replaced 'i < 64' with 'i < 200'. This also gets rid of the weird warping around the spheres. 5) -Partner: Marcus \n +Partner: Marcus
Shadertoy: https://www.shadertoy.com/view/wcsfWf # Submission