From 6d4b8ba1e8f81d93c58f2777d690ae4dfd10161e Mon Sep 17 00:00:00 2001 From: Aurcereal <98704205+Aurcereal@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:43:38 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index fc7863a..4933659 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # lab02-debugging +- Declaration of vec2 uv2, I found this bug since it was a compile error that showed me the line, it was a syntax error and I fixed it by correcting the syntax. +- Passing uv into raycast function. Someone told me about this and I changed it from uv to uv2 since I didn't notice it. +- Multiplying H by iResolution.x / iResolution.x seemed incorrect and I thought it should be the aspect ratio so I changed it to iResolution.x / iResolution.y. +- To debug reflection, I started by making sure the reflection direction was correct. I saw that it was wrong since we were reflecting the position, not the direction. +- I saw that the checker floor in the output was a long than my output, but the floor plane was really big, so I increased the march steps from 64 to 256 so the ray could march longer. + + # 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 c43a43db0972c64e337aa147ba7d2a812c15f954 Mon Sep 17 00:00:00 2001 From: Aurcereal <98704205+Aurcereal@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:48:53 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4933659..4a06bbb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # lab02-debugging +Team Members: Yichen Huang, Kevin Du + - Declaration of vec2 uv2, I found this bug since it was a compile error that showed me the line, it was a syntax error and I fixed it by correcting the syntax. - Passing uv into raycast function. Someone told me about this and I changed it from uv to uv2 since I didn't notice it. - Multiplying H by iResolution.x / iResolution.x seemed incorrect and I thought it should be the aspect ratio so I changed it to iResolution.x / iResolution.y. From 6f63eccf31d86c85b4d86552aa2c7a3699b32bda Mon Sep 17 00:00:00 2001 From: Aurcereal <98704205+Aurcereal@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:49:19 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4a06bbb..35930d5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # lab02-debugging +Link: https://www.shadertoy.com/view/WfXfWl + Team Members: Yichen Huang, Kevin Du - Declaration of vec2 uv2, I found this bug since it was a compile error that showed me the line, it was a syntax error and I fixed it by correcting the syntax.