Skip to content

Instantly share code, notes, and snippets.

Tom Hulton-Harrop pr0g

  • Reading, UK
Block or report user

Report or block pr0g

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pr0g
pr0g / Camera.hpp
Last active Jun 20, 2019
Simple FPS Camera
View Camera.hpp
// glm
struct Camera
{
glm::vec3 position { 0.0f };
float yaw { 0.0f };
float pitch { 0.0f };
// pass this to the shader (the 'v' in the mvp multiplication)
glm::mat4 view() const
{
You can’t perform that action at this time.