This commit is contained in:
alufolie91 committed 2023-08-29 07:25:55 +02:00
1 parent 52b4f65582
commit b5269ebbb5
1 file changed
+5 -21
+5 -21
View File
@@ -3797,7 +3797,6 @@ static void HWR_RotateSpritePolyToAim(gr_vissprite_t *spr, FOutVector *wallVerts
}
lowy = wallVerts[0].y;
// Rotate sprites to fully billboard with the camera
// X, Y, AND Z need to be manipulated for the polys to rotate around the
// origin, because of how the origin setting works I believe that should
@@ -5254,35 +5253,20 @@ void HWR_ProjectPrecipitationSprite(precipmobj_t *thing)
unsigned rot = 0;
UINT8 flip;
// uncapped/interpolation
interpmobjstate_t interp = {0};
float basey, lowy;
if (!thing)
return;
// uncapped/interpolation
interpmobjstate_t interp = {0};
// do interpolation
if (R_UsingFrameInterpolation() && !paused)
{
if (precip)
{
R_InterpolatePrecipMobjState(spr->mobj, rendertimefrac, &interp);
}
else
{
R_InterpolateMobjState(spr->mobj, rendertimefrac, &interp);
}
R_InterpolatePrecipMobjState(thing, rendertimefrac, &interp);
}
else
{
if (precip)
{
R_InterpolatePrecipMobjState(spr->mobj, FRACUNIT, &interp);
}
else
{
R_InterpolateMobjState(spr->mobj, FRACUNIT, &interp);
}
R_InterpolatePrecipMobjState(thing, FRACUNIT, &interp);
}
// transform the origin point