Mat3 vs mat4 speed


Is it faster to compute mat3 or mat4 operations in fragment programs ?
I’m asking so because I guess GPU is optimized for mat4 operations rather than mat3…


mat4 * vec4 takes one instruction more than mat3 * vec3, if that answers your question.

Ok thanks, so if I can I should rather use mat3 operations.

Seems that Mat3Mat3 operations are faster than
3 Mat3
Vec3 operations, interesting !

How can that be?!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.