Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thomas and Rain's Sick PR #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# lab06-debugging

# Submission

Team: Thomas Shaw and Rain Yan

[Shader with bugs corrected](https://www.shadertoy.com/view/DscyR2)

1. First bug was the aspect ratio being calculated wrong. This one we found just by glancing through the code.
2. The second was `vec` being used instead of `vec2` for `uv2` - this led to a compilation error, which was easy to pinpoint.
3. The next one followed, where we saw only a quarter of the image on screen, so we tracked it down to some non-normalized coordinates.
4. We noticed reflections weren't working, so we looked into the code for finding reflection materials. While stepping through the code to understand it we noticed the `reflect` call was using the wrong parameters and fixed it.
5. Finally, the image had some "warping" around objects, which (as far as we know from raymarching experience) could be fixed by either increasing the base `t` value, or increasing step count. We increased step count from 64 to 128 and got a similar final image.

# 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).
Expand Down