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

# Shader Link
https://www.shadertoy.com/view/WcXfWl
Help received from: Aidan G and Kevin D

# Identified Bugs:

## in main
vec uv2 = 2.0 * uv - vec2(1.0); this line has vec instead of vec2 <br/>
raycast(uv, dir, eye, ref); uv here should be uv2

## in raycast()
H *= len * iResolution.x / iResolution.x; should be dividing by iResolution.y

## in Intersection sdf3D()
dir = reflect(eye, nor); should be dir = reflect(dir, nor)

## in march()
for(int i = 0; i < 64; ++i) ; this 64 limit should be larger, so that it has more samples to reach the further floor, something like 256;

# 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