mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Adopted Nash's code for handling models with INTERPOLATE.
This commit is contained in:
parent
39fcea9176
commit
d55f1d3f6f
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
#include "r_state.h"
|
||||
#include "d_player.h"
|
||||
#include "g_levellocals.h"
|
||||
#include "r_utility.h"
|
||||
//#include "resources/voxels.h"
|
||||
//#include "gl/gl_intern.h"
|
||||
|
||||
|
@ -1010,6 +1011,13 @@ void gl_RenderModel(GLSprite * spr)
|
|||
|
||||
// Model space => World space
|
||||
gl_RenderState.mModelMatrix.translate(spr->x, spr->z, spr->y );
|
||||
|
||||
if (spr->actor->renderflags & RF_INTERPOLATE)
|
||||
{
|
||||
// [Nash] use interpolated angles
|
||||
DRotator Angles = spr->actor->InterpolatedAngles(r_TicFracF);
|
||||
angle = Angles.Yaw.Degrees;
|
||||
}
|
||||
|
||||
// Applying model transformations:
|
||||
// 1) Applying actor angle, pitch and roll to the model
|
||||
|
|
Loading…
Reference in a new issue