Open max-ch9i opened 6 years ago
Sorry everyone. You are right.
Unfortunately it's not as simple as making that one change. I have to go fix all the samples using these libraries on both webgl2 and webgl1. I also have to rename the libraries to like 2d-math-v2.js so as not to break anyone using the old versions (since people link directly). The short of that is I've just been too lazy to fix since it will talk a while.
It's on my todo list but no ETA ATM
On the page https://github.com/greggman/webgl2-fundamentals/blob/master/webgl/lessons/webgl-2d-matrices.md the rotation matrix generator is incorrectly defined as:
This results in rotation in the reverse direction. Matrix components in GLSL are defined in column-major order, so the correct definition should be: