The order of the matrix multiplication and subtraction has been reversed, to match the OpenGL GLSL order.

Helpful hint to change the matrix order in the application:

Comment out the "CL_Mat.." multiplication functions and operators from the Core/Math/mat?.h include files (in the include directory, not clanlib source api)

Compile your application.

Comment out each error with "//MATRIX_FIX"

When your application compiles without errors, restore the include files

Adjust all the //MATRIX_FIX lines, reversing the matrix multiplication order