Skip to content

Will Cai / Debby Lin - Lab 02 #27

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

Team members: Will, Debby

Shadertoy link: https://www.shadertoy.com/view/dstcRj

Bugs found:

1. Fixed vec-> vec2 syntax error bug, to make it run normally.
2. Changed aspect ratio in the raycast function to iResolution.x / iResolution.y because noticed the camera was stretched.
3. Fixed mainImage to use uv2 instead of uv because noticed it wasn't using uv2, the correct camera position.
4. Noticed the intersection code wasn't using the direction of the raycast and using the eye position instead, so changed dir = reflect(eye, nor) to dir = reflect(dir, nor).
5. The render distance was shorter than it shouldve been so increased max raymarch distance from 64 to 300.

# 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