From 2b10347cb7af19ec4180c8186ec2dc5022cdc3b7 Mon Sep 17 00:00:00 2001 From: zhiyiz Date: Tue, 24 Sep 2024 10:34:24 -0400 Subject: [PATCH] update README --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index fc7863a..5827fcd 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,34 @@ Extra credit if you can find all FIVE bugs. - 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!) + +# Result +[shader link](https://www.shadertoy.com/view/M3ScWh) + +## Bugs +- line 97 +``` +// wrong code +vec uv2 = 2.0 * uv - vec2(1.0); + +// correct +uv = 2.0 * uv - vec2(1.0); +``` + +- In the raycast function Line 11 +``` +// wrong code +H *= len * iResolution.x / iResolution.x; + +// correct +H *= len * iResolution.x / iResolution.y; +``` + +- Line 75 +``` +// wrong code +dir = reflect(eye, nor); + +//correct +dir = reflect(dir, nor); +``` \ No newline at end of file