sousou03 / glmatrix

Automatically exported from code.google.com/p/glmatrix
0 stars 0 forks source link

There is no transpose for mat3 #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The calculation of a normal transformation matrix requires a transpose for 
mat3. Currently this can be worked around by doing:

    var normMat = mat3.create();
    mat4.toInverseMat3(mvMatrix, normMat);
    normMat2 = mat3.toMat4(normMat);
    mat4.transpose(normMat);

but this is just annoying. The transpose should be done on the mat3, not the 
mat4.

Original issue reported on code.google.com by shoo...@gmail.com on 27 Feb 2011 at 10:23

GoogleCodeExporter commented 8 years ago
Implemented, will be in the next release

Original comment by Tojiro@gmail.com on 27 Feb 2011 at 4:26

GoogleCodeExporter commented 8 years ago

Original comment by Tojiro@gmail.com on 27 Feb 2011 at 6:19