Fix billboard facing camera only taking effect when used with XY billboarding

This commit is contained in:
Gene 2024-09-18 16:16:24 -07:00 committed by Rachael Alexanderson
parent 712dd1133d
commit 5347cdf569
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -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