Skip to content

Lab02 | Aboudi Rai #21

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

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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# lab06-debugging

## Aboudi Rai | Submission:
### Result
[My Debugging Scene](https://www.shadertoy.com/view/cd3czj)
### Bugs
1. Line 97: There was a syntax error where a `vec2` was accidentally written as `vec`.
2. Line 100: `uv` was fed into raycast instead of `uv2`
3. Line 11: Height was not being multiplied by correct aspect ratio. Switched to `H *= len * iResolution.x / iResolution.y`
4. Line 18: Increased iteration count in `march(...)` to 256 to allow all parts of the floor to be hit.
5. Line 75: reflection was erroneously done about `eye` and `nor` rather than `dir` and `nor`.

# 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