Skip to content

negiowo/lab02-debugging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

lab02-debugging

Name: Joshua Zhang

Link: Shadertoy link

Bugs found:

  1. line 97, changed uv to uv2 (compiler warning)
  2. line 100, changed uv to uv2 (objects out of position)
  3. line 11, changed the second iResolution.x to iResolution.y (ovals instead of spheres)
  4. line 75, changed eye to dir (reflection not working properly)

Setup

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors