diff --git a/README.md b/README.md index fc7863a..35c2eb6 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,13 @@ # lab02-debugging -# Setup +name: Weike Qian -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). +link: https://www.shadertoy.com/view/3fXBDl -Let's practice debugging! We have a broken shader. It should produce output that looks like this: -[Unbelievably beautiful shader](https://user-images.githubusercontent.com/1758825/200729570-8e10a37a-345d-4aff-8eff-6baf54a32a40.webm) +BUGs: -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. - -# Submission -- Create a pull request to this repository -- In the README, include the names of both your team members -- In the README, create a link to your shader toy solution with the bugs corrected -- In the README, describe each bug you found and include a sentence about HOW you found it. -- Make sure all three of your shadertoys are set to UNLISTED or PUBLIC (so we can see them!) + - BUG1: line 97: 'vec' : undeclared identifier | HOW: ERROR + - BUG2: Wrong Resolution in line 11, should be x / y | HOW: see two x + - BUG3: Wrong center point, should minus 0.5f with uv | HOW: see and seek + - BUG4: Wrong marching methods, added steps and maximized mininum step | HOW: Find error around spheres and seek into marching funcs + - BUG5: Wrong shader effects because of wrong reflecting direction | HOW: Checked for specular and diffuse part of color and divided the steps to find the error