camera.cpp
// Returns the view matrix calculated using Eular Angles and the LookAt Matrix
Returns the view matrix calculated using Eular Angles and the LookAt Matrix
Returns the view matrix calculated using Eular Angles and the LookAt Matrix
glm::mat4 Camera::GetViewMatrix() const
{
    glm::vec3 offset;
    offset += Front * Offset.x;
    offset += Up * Offset.y;
    offset += Right * Offset.z;
    return glm::lookAt(this->Position + offset, this->Position + offset + this->Front, this->Up);
}
glm :: mat4 Camera :: GetViewMatrix ( ) const { glm :: vec3 offset ; offset += Front * Offset . x ; offset += Up * Offset . y ; offset += Right * Offset . z ; return glm :: lookAt ( this -> Position + offset , this -> Position + offset + this -> Front , this -> Up ) ; }
Returns the view matrix calculated using Eular Angles and the LookAt Matrix
Returns the view matrix calculated using Eular Angles and the LookAt Matrix