mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Fix packed normal order bug
This commit is contained in:
parent
2000784307
commit
d2e0933a81
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,8 @@ struct FModelVertex
|
||||||
int inx = clamp(int(nx * 512), -512, 511);
|
int inx = clamp(int(nx * 512), -512, 511);
|
||||||
int iny = clamp(int(ny * 512), -512, 511);
|
int iny = clamp(int(ny * 512), -512, 511);
|
||||||
int inz = clamp(int(nz * 512), -512, 511);
|
int inz = clamp(int(nz * 512), -512, 511);
|
||||||
packedNormal = /*0x40000000 |*/ ((inx & 1023) << 20) | ((iny & 1023) << 10) | (inz & 1023);
|
int inw = 0;
|
||||||
|
packedNormal = (inw << 30) | ((inz & 1023) << 20) | ((iny & 1023) << 10) | (inx & 1023);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue