don't invert flat mesh Z

This commit is contained in:
David Rose 2001-12-13 02:07:45 +00:00
parent 771ff8b9a1
commit a1a47f8669
1 changed files with 3 additions and 3 deletions

View File

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