Fix spherical camera elevation angle
This commit is contained in:
parent
78fd6db86c
commit
22726bc565
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ namespace psemek::geom
|
||||||
translation<float, 3>({0.f, 0.f, -distance}).homogeneous_matrix()
|
translation<float, 3>({0.f, 0.f, -distance}).homogeneous_matrix()
|
||||||
* homogeneous(swap<float, 3>(1, 2).matrix())
|
* homogeneous(swap<float, 3>(1, 2).matrix())
|
||||||
* homogeneous(scale<float, 3>({1.f, -1.f, 1.f}).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())
|
* homogeneous(plane_rotation<float, 3>(1, 0, azimuthal_angle).matrix())
|
||||||
* translation<float, 3>({ -target[0], -target[1], -target[2] }).homogeneous_matrix()
|
* translation<float, 3>({ -target[0], -target[1], -target[2] }).homogeneous_matrix()
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue