if (ent->model == NULL)
return;
if (ent == r_refdef.worldentity)
- R_DrawWorldSurfaces(true);
+ R_DrawWorldSurfaces(true, true, false);
else
- R_DrawModelSurfaces(ent, true);
+ R_DrawModelSurfaces(ent, true, true, false);
}
void R_Q1BSP_Draw(entity_render_t *ent)
if (model == NULL)
return;
if (ent == r_refdef.worldentity)
- R_DrawWorldSurfaces(false);
+ R_DrawWorldSurfaces(false, true, false);
else
- R_DrawModelSurfaces(ent, false);
+ R_DrawModelSurfaces(ent, false, true, false);
+}
+
+void R_Q1BSP_DrawDepth(entity_render_t *ent)
+{
+ model_t *model = ent->model;
+ if (model == NULL)
+ return;
+ if (ent == r_refdef.worldentity)
+ R_DrawWorldSurfaces(false, false, true);
+ else
+ R_DrawModelSurfaces(ent, false, false, true);
}
typedef struct r_q1bsp_getlightinfo_s