23 auto rotationMatrix = glm::mat4(1.0F);
25 rotationMatrix = rotate(rotationMatrix,
rotation.x, glm::vec3(1.0F, 0.0F, 0.0F));
26 rotationMatrix = rotate(rotationMatrix,
rotation.y, glm::vec3(0.0F, 1.0F, 0.0F));
27 rotationMatrix = rotate(rotationMatrix,
rotation.z, glm::vec3(0.0F, 0.0F, 1.0F));
29 const glm::mat4 scaleMatrix = glm::scale(glm::mat4(1.0F),
scale);
30 const glm::mat4 translationMatrix = translate(glm::mat4(1.0F),
translation);
32 return translationMatrix * rotationMatrix * scaleMatrix;