From 9ae0dd8ccaa5f92279b3e3ea7862a147dd605760 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 9 Aug 2012 05:27:59 +0000 Subject: [PATCH] correct matrix for 3-d uvs --- panda/src/grutil/pfmFile.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/grutil/pfmFile.cxx b/panda/src/grutil/pfmFile.cxx index b704a29658..635eec2098 100755 --- a/panda/src/grutil/pfmFile.cxx +++ b/panda/src/grutil/pfmFile.cxx @@ -999,10 +999,10 @@ void PfmFile:: project(const Lens *lens) { nassertv(is_valid()); - static LMatrix4f to_uv(0.5, 0.0, 0.0, 0.0, - 0.0, 0.5, 0.0, 0.0, - 0.0, 0.0, 1.0, 0.0, - 0.5, 0.5, 0.0, 1.0); + static LMatrix4f to_uv(0.5f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.5f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.5f, 0.0f, + 0.5f, 0.5f, 0.5f, 1.0f); for (int yi = 0; yi < _y_size; ++yi) { for (int xi = 0; xi < _x_size; ++xi) {