From a1a47f8669531e30f7fbe053c5f7c2427df3eaff Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 13 Dec 2001 02:07:45 +0000 Subject: [PATCH] don't invert flat mesh Z --- panda/src/distort/projectionScreen.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/distort/projectionScreen.cxx b/panda/src/distort/projectionScreen.cxx index 43d49d4592..9920a7fa3f 100644 --- a/panda/src/distort/projectionScreen.cxx +++ b/panda/src/distort/projectionScreen.cxx @@ -238,6 +238,9 @@ make_flat_mesh(LensNode *camera) { nassertr(camera != (LensNode *)NULL, NULL); nassertr(camera->get_lens() != (Lens *)NULL, NULL); + // First, ensure the UV's are up-to-date. + recompute_if_stale(); + PT_Node top = new NamedNode(get_name()); LMatrix4f rel_mat; @@ -538,9 +541,6 @@ make_mesh_geom(Geom *geom, Lens *lens, LMatrix4f &rel_mat) { LPoint3f film(0.0f, 0.0f, 0.0f); lens->project(vert * rel_mat, film); - // Invert the Z coordinate. We like -1 being closer than 1. - film[2] = -film[2]; - new_coords.push_back(film); }