GLM Intro - Matrix Transform Example

来源:互联网 发布:华云数据集团有限公司 编辑:程序博客网 时间:2024/04/30 22:09


 currentMatrix = glm::mat4(1.0f);
 currentMatrix = glm::rotate(currentMatrix , glm::pi<float>(), glm::vec3(0.0, 0.0, 1.0));
 currentMatrix = glm::scale(currentMatrix , glm::vec3(-1.0, 1.0, 1.0));


0 0