mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
distort: fix use of cylindrical_k in oSphereLens.cxx
This commit is contained in:
parent
9a26b5fd08
commit
029d7363cd
@ -48,7 +48,7 @@ do_extrude(const Lens::CData *lens_cdata,
|
||||
LPoint3 f = point2d * do_get_film_mat_inv(lens_cdata);
|
||||
|
||||
PN_stdfloat focal_length = do_get_focal_length(lens_cdata);
|
||||
PN_stdfloat angle = f[0] * cylindrical_k / focal_length;
|
||||
PN_stdfloat angle = f[0] * ospherical_k / focal_length;
|
||||
PN_stdfloat sinAngle, cosAngle;
|
||||
csincos(deg_2_rad(angle), &sinAngle, &cosAngle);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user