working crafter math

This commit is contained in:
Jorijn van der Graaf 2025-05-05 05:14:47 +02:00
commit 809617e6c4
4 changed files with 21 additions and 20 deletions

View file

@ -10,9 +10,10 @@ import Crafter.Math;
namespace Crafter {
export class Camera : public Component {
public:
Matrix<float, 4, 4, 1> projection;
Matrix<float, 4, 4, 1> view;
Matrix<float, 4, 4, 1> projectionView;
MatrixRowMajor<float, 4, 4, 1> projection;
MatrixRowMajor<float, 4, 4, 1> view;
MatrixRowMajor<float, 4, 4, 1> projectionView;
Camera(float fov, float aspectRatio, float near, float far);
void Update();
};
}