Disable directional lighting on Ark Arrow models

This commit is contained in:
Lach 2024-03-09 17:37:54 +11:00
parent 3f28fb005d
commit dd52fb7620
3 changed files with 11 additions and 1 deletions

View file

@ -1362,7 +1362,7 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
if (!lightset)
HWR_ObjectLightLevelPost(spr, sector, &lightlevel, true);
HWR_Lighting(&Surf, lightlevel, colormap, P_SectorUsesDirectionalLighting(sector) && !R_ThingIsFullBright(spr->mobj));
HWR_Lighting(&Surf, lightlevel, colormap, P_SectorUsesDirectionalLighting(sector) && !R_ThingIsFullBright(spr->mobj) && R_ThingModelUsesDirectionalLightning(spr->mobj));
}
else
Surf.PolyColor.rgba = 0xFFFFFFFF;

View file

@ -3871,6 +3871,15 @@ boolean R_ThingIsFullDark(mobj_t *thing)
return ((thing->frame & FF_BRIGHTMASK) == FF_FULLDARK);
}
boolean R_ThingModelUsesDirectionalLightning(mobj_t *thing)
{
if (thing->type == MT_ARKARROW)
{
return false;
}
return true;
}
//
// R_DrawMasked
//

View file

@ -91,6 +91,7 @@ boolean R_ThingIsFloorSprite (mobj_t *thing);
boolean R_ThingIsFullBright (mobj_t *thing);
boolean R_ThingIsSemiBright (mobj_t *thing);
boolean R_ThingIsFullDark (mobj_t *thing);
boolean R_ThingModelUsesDirectionalLightning(mobj_t *mobj);
boolean R_ThingIsFlashing(mobj_t *thing);