T2.3 Transform with GLM and connect to shader
Github code
GLM
GLM APIs for translation, scale and rotation
Last updated
Last updated
glm::mat4 glm::mat4(1.0)glm::mat4 glm::translate(glm::vec3(tx, ty, tz));
glm::mat4 glm::rotate(glm::radians(angle_in_degree), glm::vec3(axis_x, axis_y, axis_z));
glm::mat4 glm::scale(glm::vec3(sx, sy, sz));