Open T-igra opened 3 years ago
I found a solution.
glm::mat4 curr_view_matrix = (glm::mat4)(1.0f) * (glm::mat4)(camera_matrices[frame][0][0]);
I found a solution.
glm::mat4 curr_view_matrix = (glm::mat4)(1.0f) * (glm::mat4)(camera_matrices[frame][0][0]);
Thanks bro! It works a lot.
I'm trying to port to Windows. In VS 2019, I get a compilation error: 'identifier "inverse_perspective_matrix" is undefined'.
glm::mat4 curr_view_matrix = (*(glm::mat4*)inverse_perspective_matrix) * (*(glm::mat4*)(&camera_matrices[frame][0][0]));