From 59389fbaa81db49b5db5d3407f6901302c93ba57 Mon Sep 17 00:00:00 2001 From: Charles Wang Date: Wed, 18 Sep 2024 08:43:31 -0700 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index fc7863a..5362048 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,16 @@ # lab02-debugging +# Submission (Charles Wang) + +Did not work with anyone. + +Link to Shadertoy: [https://www.shadertoy.com/view/lXXyD2](https://www.shadertoy.com/view/lXXyD2) + +1. When the page first loaded, Shadertoy pointed out an error it had while compiling. I corrected the type from vec to vec2. +2. I realized that even though we calculated the value of uv2, we never actually used it. That didn't feel right so I replaced uv with uv2 in the raycast() call, which fixed the viewport only rendering the first quadrant. +3. I noticed the ground was "cut off" early, which usually meant we weren't marching far enough. So I quadrupled the step size we took and it fixed it. +4. I went line by line through sdf3D(), and realized that the reflection we take about the intersection point was incorrect. `eye` is the position of the camera, not the direction that we're reflecting, so I changed that, and everything else worked. + # 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).