mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
stdfloat_double issue
This commit is contained in:
parent
74621e39b6
commit
96b048519e
@ -593,13 +593,13 @@ recompute_geom(Geom *geom, const LMatrix4 &rel_mat) {
|
|||||||
LPoint3 uvw = film * to_uv;
|
LPoint3 uvw = film * to_uv;
|
||||||
|
|
||||||
if (good && _has_undist_lut) {
|
if (good && _has_undist_lut) {
|
||||||
LPoint3 p;
|
LPoint3f p;
|
||||||
if (!_undist_lut.calc_bilinear_point(p, uvw[0], 1.0 - uvw[1])) {
|
if (!_undist_lut.calc_bilinear_point(p, uvw[0], 1.0 - uvw[1])) {
|
||||||
// Point is missing.
|
// Point is missing.
|
||||||
uvw.set(0, 0, 0);
|
uvw.set(0, 0, 0);
|
||||||
good = false;
|
good = false;
|
||||||
} else {
|
} else {
|
||||||
uvw = p;
|
uvw = LCAST(PN_stdfloat, p);
|
||||||
uvw[1] = 1.0 - uvw[1];
|
uvw[1] = 1.0 - uvw[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -763,13 +763,13 @@ make_mesh_geom(const Geom *geom, Lens *lens, LMatrix4 &rel_mat) {
|
|||||||
// Rescale these to [0, 1].
|
// Rescale these to [0, 1].
|
||||||
LPoint3 uvw = film * lens_to_uv;
|
LPoint3 uvw = film * lens_to_uv;
|
||||||
|
|
||||||
LPoint3 p;
|
LPoint3f p;
|
||||||
if (!_undist_lut.calc_bilinear_point(p, uvw[0], 1.0 - uvw[1])) {
|
if (!_undist_lut.calc_bilinear_point(p, uvw[0], 1.0 - uvw[1])) {
|
||||||
// Point is missing.
|
// Point is missing.
|
||||||
uvw.set(0, 0, 0);
|
uvw.set(0, 0, 0);
|
||||||
good = false;
|
good = false;
|
||||||
} else {
|
} else {
|
||||||
uvw = p;
|
uvw = LCAST(PN_stdfloat, p);
|
||||||
uvw[1] = 1.0 - uvw[1];
|
uvw[1] = 1.0 - uvw[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user