Discussion about this post

User's avatar
h0r0's avatar

I'm currently studying matrix operations in shaders, and I might be mistaken because I'm still quite confused, but isn't the calculation shown in the “Matrix * Matrix” section incorrect?

Shouldn't it be:

mat2(a,b,c,d) * mat2(x,y,z,w) = mat2(x*a+y*c, x*b+y*d, z*a+w*c, z*b+w*d)

mat2(x,y,z,w) * mat2(a,b,c,d) = mat2(a*x+b*z, a*y+b*w, c*x+d*z, c*y+d*w)

2 more comments...

No posts

Ready for more?