WebGL Beginner’s Guide – Errata
Please find here the typos and errors that I have been made aware of by the readers of the WebGL Beginner’s Guide .If you have found anything that you think it may be a typo or an error in the text or the code, please feel free to let us know through:
http://www.packtpub.com/support or at
https://getsatisfaction.com/voxelent Thank you!
page 80:
The instruction on step 7 should look like:
gl.uniform3f(prg.uLightDirection, 0.0, -1.0, -1.0)
page 96:
The code on step 12 should be:
document.onkeydown = processKey;
With this change the code works now on Chrome. The code has been updated in the BitBucket repository.