Dumb perspective hack

This commit is contained in:
Grant Sanderson 2018-08-28 09:43:45 -07:00
parent 04b0cadb08
commit 62f0a20843

View file

@ -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