OpenGL2: Draw sun shadows for first person IQM player models

This makes IQM have the same behavior as MD3 and MDR.
This commit is contained in:
Zack Middleton 2017-06-30 13:59:07 -05:00
parent 102c79eb49
commit e77153766a

View file

@ -849,7 +849,8 @@ void R_AddIQMSurfaces( trRefEntity_t *ent ) {
surface = data->surfaces;
// don't add third_person objects if not in a portal
personalModel = (ent->e.renderfx & RF_THIRD_PERSON) && !tr.viewParms.isPortal;
personalModel = (ent->e.renderfx & RF_THIRD_PERSON) && !(tr.viewParms.isPortal
|| (tr.viewParms.flags & (VPF_SHADOWMAP | VPF_DEPTHSHADOW)));
if ( ent->e.renderfx & RF_WRAP_FRAMES ) {
ent->e.frame %= data->num_frames;