mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
- SW: interpolate texture panning.
This commit is contained in:
parent
3d0842d851
commit
922dc178d6
1 changed files with 6 additions and 0 deletions
|
@ -2114,6 +2114,8 @@ SpriteSetup(void)
|
|||
else
|
||||
sp->xvel = sp->lotag;
|
||||
|
||||
StartInterpolation(sp->sectnum, Interp_Sect_FloorPanX);
|
||||
StartInterpolation(sp->sectnum, Interp_Sect_FloorPanY);
|
||||
change_sprite_stat(SpriteNum, STAT_FLOOR_PAN);
|
||||
break;
|
||||
}
|
||||
|
@ -2125,6 +2127,8 @@ SpriteSetup(void)
|
|||
sp->xvel = 0;
|
||||
else
|
||||
sp->xvel = sp->lotag;
|
||||
StartInterpolation(sp->sectnum, Interp_Sect_CeilingPanX);
|
||||
StartInterpolation(sp->sectnum, Interp_Sect_CeilingPanY);
|
||||
change_sprite_stat(SpriteNum, STAT_CEILING_PAN);
|
||||
break;
|
||||
}
|
||||
|
@ -2155,6 +2159,8 @@ SpriteSetup(void)
|
|||
sp->ang = SP_TAG6(sp);
|
||||
// attach to the sector that contains the wall
|
||||
changespritesect(SpriteNum, hitinfo.sect);
|
||||
StartInterpolation(hitinfo.wall, Interp_Wall_PanX);
|
||||
StartInterpolation(hitinfo.wall, Interp_Wall_PanY);
|
||||
change_sprite_stat(SpriteNum, STAT_WALL_PAN);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue