Fix spherical camera elevation angle

This commit is contained in:
Nikita Lisitsa 2020-08-31 10:20:19 +03:00
parent 78fd6db86c
commit 22726bc565

View file

@ -102,7 +102,7 @@ namespace psemek::geom
translation<float, 3>({0.f, 0.f, -distance}).homogeneous_matrix()
* homogeneous(swap<float, 3>(1, 2).matrix())
* homogeneous(scale<float, 3>({1.f, -1.f, 1.f}).matrix())
* homogeneous(plane_rotation<float, 3>(2, 1, elevation_angle).matrix())
* homogeneous(plane_rotation<float, 3>(1, 2, elevation_angle).matrix())
* homogeneous(plane_rotation<float, 3>(1, 0, azimuthal_angle).matrix())
* translation<float, 3>({ -target[0], -target[1], -target[2] }).homogeneous_matrix()
;