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

lab02 debugging: Akiko Zhu #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Binary file added 01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
### Results:
![](01.gif)
[Shadertoy](https://www.shadertoy.com/view/l3XcD2)
I fixed the following bugs in this lab02 project
- Syntax error:
- vec uv should be vec2 uv
- Argument input error:
- should put uv2 in the raycast function instead of uv, so that the camera can correctly see the entire scene
- iResolution error:
- should change iResolution.x / iResolution.x to iResolution.x / iResolution.y so that the camera will not be distorted
- Ray march limit error:
- should increase the maximum distance(i < 256 instead of i < 64) that ray can march the scene object so that the camera can see the further floor
- Reflection error:
- this one is very tricky, should plug dir into the reflect function instead of eye




# lab02-debugging

# Setup
Expand Down