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:
parent
102c79eb49
commit
e77153766a
1 changed files with 2 additions and 1 deletions
|
@ -849,7 +849,8 @@ void R_AddIQMSurfaces( trRefEntity_t *ent ) {
|
||||||
surface = data->surfaces;
|
surface = data->surfaces;
|
||||||
|
|
||||||
// don't add third_person objects if not in a portal
|
// 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 ) {
|
if ( ent->e.renderfx & RF_WRAP_FRAMES ) {
|
||||||
ent->e.frame %= data->num_frames;
|
ent->e.frame %= data->num_frames;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue