mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-28 06:53:29 +00:00
SW: fix shadow size math.
This commit is contained in:
parent
e48911dcc9
commit
c6f1990495
1 changed files with 2 additions and 2 deletions
|
@ -347,8 +347,8 @@ void DoShadows(tspriteArray& tsprites, tspritetype* tsp, double viewz)
|
|||
ground_dist = int(abs(loz - GetSpriteZOfBottom(tsp)) * (1./16));
|
||||
|
||||
double scaleofs = (ground_dist - view_dist) * REPEAT_SCALE;
|
||||
scale.X = clamp(scale.X + scaleofs, 0.0625, 4.);
|
||||
scale.Y = clamp(scale.Y + scaleofs, 0.0625, 4.);
|
||||
scale.X = clamp(scale.X - scaleofs, 0.0625, 4.);
|
||||
scale.Y = clamp(scale.Y - scaleofs, 0.0625, 4.);
|
||||
tSpr->scale = scale;
|
||||
|
||||
if (tilehasmodelorvoxel(tsp->spritetexture(), tsp->pal))
|
||||
|
|
Loading…
Reference in a new issue