add camera view dir helper

This commit is contained in:
2022-02-15 17:21:45 +01:00
parent 49ed05dfd6
commit f5eb0e0dfa
2 changed files with 24 additions and 14 deletions

View File

@@ -47,6 +47,8 @@ namespace MM::OpenGL {
glm::mat4 getView(void) const;
glm::mat4 getProjection(void) const;
glm::vec3 getViewDir(void) const;
// call updateView beforehand, does not cache
std::array<glm::vec4, 6> getFrustumPlanes(void) const;