scaling matrix has the form:
GLM, this is programmed with the command:mModelMatrix = glm::scale(mModelMatrix, glm::vec3(sx, sy, sz));
separate scaling to each coordinate.
Suppose we have a point p
[x, y, z]T. First, we homogenise p so
[x, y, z, 1]T.
Now, let’s determine the matrix product Sp