Name: Joshua Zhang
Link: Shadertoy link
Bugs found:
- line 97, changed uv to uv2 (compiler warning)
- line 100, changed uv to uv2 (objects out of position)
- line 11, changed the second iResolution.x to iResolution.y (ovals instead of spheres)
- line 75, changed eye to dir (reflection not working properly)
Create a Shadertoy account. Either fork this shadertoy, or create a new shadertoy and copy the code from the Debugging Puzzle.
Let's practice debugging! We have a broken shader. It should produce output that looks like this: Unbelievably beautiful shader
It don't do that. Correct THREE of the FIVE bugs that are messing up the output. You are STRONGLY ENCOURAGED to work with a partner and pair program to force you to talk about your debugging thought process out loud.
Extra credit if you can find all FIVE bugs.