<<< glm::rotate | Index | Matrix multiplication is not commutative >>> |
When using glm::scale( X, vec3 ), you are multiplying
X * glm::scale( Identity, vec3 )
For example,
glm::mat4 transMatrix = glm::translate( glm::mat4( 1.0f ), glm::vec3( 0.0f, -0.5f, 0.0f ) ); planeModel->mM = glm::scale( // Scale first transMatrix, // Translate second glm::vec3( 100.0f, 100.0f, 100.0f ) );
Far all GLM transformation API, see GLM_GTC_matrix_transform at glm.g-truc.net
<<< glm::rotate | Index | Matrix multiplication is not commutative >>> |