书还行,但刚看就发现几处错误了
2015-02-04
本书写得算是比较浅显易懂,适合初学者
但我才看几页就发现两个错误
page.34
vec4 is a vector made up of three floats. However, you only have three floats (0.0, 0.0, 0.0) representing X, Y, and Z.
应该是vec4 is a vector made up of four floats.
要不语句上下文都自相矛盾了。。。。
page.54 line56.57
x = ((x - rect.left) - canvas.height/2)/(canvas.height/2);
y = (canvas.width/2 - (y - rect.top))/(canvas.width/2);
这里应该是
x = ((x - rect.left) - canvas.width/2)/(canvas.width/2);
y = ((canvas.height/2 - (y - rect.top)))/(canvas.height/2);
坑爹啊
这作者写得也太不认真了
虽然错误看起来不起眼,但随时要了初学者的老命,把初学者的理解引导到奇怪的次元,越看越糊涂