Matrix - Vector multiply Bug

  • Posts: 156
2 years 4 weeks ago - 2 years 4 weeks ago #1 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! [ Click to expand ]


EDIT*
Otherwise it gives green tint.

Games that I used, were Blender and Mirrors Edge.

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

  • Posts: 3665
2 years 3 weeks ago - 2 years 3 weeks ago #2 by crosire
Good catch. The GLSL code generator didn't handle literal matrices correctly. This is fixed in commit 77bdd3ac9d5c9fde4dc93b31a2fc05deef9d6dfa.

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