flat* matrix = glm::value_ptr(mat);. The right vector would be row 1. glm::vec3 right = glm::vec3(matrix[0], matrix[1], matrix[2]);.
確定! 回上一頁