mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
proper transformation
This commit is contained in:
parent
f324ea73ef
commit
2cd6d8ef58
1 changed files with 3 additions and 3 deletions
|
|
@ -21,9 +21,9 @@ vec3 position_point_into_frame(vec3 point)
|
|||
}
|
||||
if (bool(is_fixed_orientation))
|
||||
{
|
||||
vec3 new_center = rotate_point_into_frame(fixed_orientation_center);
|
||||
return point + (new_center - fixed_orientation_center);
|
||||
|
||||
return point - camera_rotation * camera_center + camera_rotation * fixed_orientation_center - fixed_orientation_center;
|
||||
}
|
||||
return rotate_point_into_frame(point - camera_center);
|
||||
return camera_rotation*(point - camera_center);
|
||||
}
|
||||
#endif // POSITION_POINT_INTO_FRAME_GLSL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue