diff options
| author | Mel <einebeere@gmail.com> | 2022-10-04 01:18:19 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-04 01:18:19 +0200 |
| commit | 0631fb666d2a28a6eb9b8d1578675699b41a5de6 (patch) | |
| tree | 1db9b88d9c11074864f6959d32960eb6c54d3c4b /src/Math/MVP.hpp | |
| parent | 75f3941579c756655fc7d4d29e7b92b6eae436b7 (diff) | |
| download | meowcraft-0631fb666d2a28a6eb9b8d1578675699b41a5de6.tar.zst meowcraft-0631fb666d2a28a6eb9b8d1578675699b41a5de6.zip | |
Cube Rendering
Diffstat (limited to 'src/Math/MVP.hpp')
| -rw-r--r-- | src/Math/MVP.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Math/MVP.hpp b/src/Math/MVP.hpp new file mode 100644 index 0000000..c3fb64f --- /dev/null +++ b/src/Math/MVP.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include "Math.hpp" + +namespace Math::MVP { + +Matrix<4, 4> model(Vector<3> position, Rotation angles); +Matrix<4, 4> view(Vector<3> position, Rotation angles); +Matrix<4, 4> projection(float aspect, float fov, float near, float far); + +} |
