9 lines
179 B
C++
9 lines
179 B
C++
|
#include "camera.hpp"
|
||
|
|
||
|
#include <glm/gtc/matrix_transform.hpp>
|
||
|
|
||
|
glm::mat4 Camera::transformation() const
|
||
|
{
|
||
|
return projection * glm::inverse(Transformation::transformation());
|
||
|
}
|