mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:57:44 +00:00
Dumb perspective hack
This commit is contained in:
parent
04b0cadb08
commit
62f0a20843
1 changed files with 2 additions and 1 deletions
|
|
@ -180,7 +180,8 @@ class ThreeDCamera(Camera):
|
|||
factor[lt0] = (distance / (distance - zs[lt0]))
|
||||
else:
|
||||
factor = (distance / (distance - zs))
|
||||
clip_in_place(factor, 0, 10**6)
|
||||
factor[(distance - zs) < 0] = 10**6
|
||||
# clip_in_place(factor, 0, 10**6)
|
||||
points[:, i] *= factor
|
||||
points += frame_center
|
||||
return points
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue