mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
correct matrix for 3-d uvs
This commit is contained in:
parent
3d68b34f9a
commit
9ae0dd8cca
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user