Matrix - Vector multiply Bug

More
2 years 6 months ago - 2 years 6 months ago #1 by Fu-Bama
Matrix - Vector multiply Bug was created by Fu-Bama
It seems that DirectX Matrix * Vector is interpreted as Vector * Matrix when using OpenGL game.
Same goes with mul() function.
Converting RGB - YUV - RGB works when:
in OpenGL games I use mul(Vector, Matrix)
in DirecX games I use mul(Matrix, Vector)

Here's little test:
Warning: Spoiler!


EDIT*
Otherwise it gives green tint.

Games that I used, were Blender and Mirrors Edge.
Last edit: 2 years 6 months ago by Fu-Bama.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago - 2 years 6 months ago #2 by crosire
Replied by crosire on topic Matrix - Vector multiply Bug
Good catch. The GLSL code generator didn't handle literal matrices correctly. This is fixed in commit 77bdd3ac9d5c9fde4dc93b31a2fc05deef9d6dfa.
Last edit: 2 years 6 months ago by crosire.

Please Log in or Create an account to join the conversation.