瀏覽代碼

distort: fix use of cylindrical_k in oSphereLens.cxx

rdb 6 年之前
父節點
當前提交
029d7363cd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/distort/oSphereLens.cxx

+ 1 - 1
panda/src/distort/oSphereLens.cxx

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