gfxfundamentals / webgl2-fundamentals

WebGL 2 lessons starting from the basics
https://webgl2fundamentals.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 220 forks source link

2D Translation page refers to non-existing sample #171

Open nounder opened 2 years ago

nounder commented 2 years ago

Beginning of "2D Translation" page refers to code sample with drawScene() function that is supposedly based on a previous sample from "Fundamentals" page. Expected changes made to this changes are highlighted.

However, "Fundamentals" page does not have any drawScene() function that "2D Translation" page is referring to.

Either "Fundamentals" code has to be worked to have such function or adjust "2D Translation" accordingly.

greggman commented 2 years ago
  // Then let's make a function to
  // re-draw everything. We can call this
  // function after we update the translation.
nounder commented 2 years ago

🙈 So I see. I think I got confused with line-changed highlight that wasn't there for the function wrapping.

greggman commented 2 years ago

Sorry about that. I agree it's not as clear as it could be