mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
Fix billboard facing camera only taking effect when used with XY billboarding
This commit is contained in:
parent
712dd1133d
commit
5347cdf569
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ bool HWSprite::CalculateVertices(HWDrawInfo* di, FVector3* v, DVector3* vp)
|
||||||
float yy = -center.Y + y;
|
float yy = -center.Y + y;
|
||||||
float zz = -center.Z + z;
|
float zz = -center.Z + z;
|
||||||
// [Nash] check for special sprite drawing modes
|
// [Nash] check for special sprite drawing modes
|
||||||
if (drawWithXYBillboard || isWallSprite)
|
if (drawWithXYBillboard || drawBillboardFacingCamera || isWallSprite)
|
||||||
{
|
{
|
||||||
mat.MakeIdentity();
|
mat.MakeIdentity();
|
||||||
mat.Translate(center.X, center.Z, center.Y); // move to sprite center
|
mat.Translate(center.X, center.Z, center.Y); // move to sprite center
|
||||||
|
|
Loading…
Reference in a new issue