Add arbitrary-matrix camera
This commit is contained in:
parent
6c4ed1b61d
commit
e7e419a931
1 changed files with 8 additions and 0 deletions
|
|
@ -69,6 +69,14 @@ namespace psemek::geom
|
|||
void set_fov(float fov_y, float aspect_ratio);
|
||||
};
|
||||
|
||||
struct matrix_camera
|
||||
: perspective_camera
|
||||
{
|
||||
matrix<float, 4, 4> view_matrix;
|
||||
|
||||
matrix<float, 4, 4> view() const override { return view_matrix; }
|
||||
};
|
||||
|
||||
struct spherical_camera
|
||||
: perspective_camera
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue