Skip to content
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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# 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.
- 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).
Expand Down