X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=r_shadow.h;h=2e1a9d4cac078f34febd0bbb2a78de217ef2419a;hb=7c80c8318c253eab01f35ee35aec044b0309ac9b;hp=61524f7c31cea00b26e23840965a9b629e5a9412;hpb=569035fb5d987a2ebcac65c5c2657d86556c24b3;p=xonotic%2Fdarkplaces.git diff --git a/r_shadow.h b/r_shadow.h index 61524f7c..2e1a9d4c 100644 --- a/r_shadow.h +++ b/r_shadow.h @@ -55,12 +55,13 @@ typedef struct worldlight_s vec3_t maxs; vec_t cullradius; struct worldlight_s *next; - msurface_t **surfaces; - int numsurfaces; rtexture_t *cubemap; int style; - shadowmesh_t *shadowvolume; int selected; + + // premade shadow volumes and lit surfaces to render + shadowmesh_t *meshchain_shadow; + shadowmesh_t *meshchain_light; } worldlight_t; @@ -68,4 +69,7 @@ extern worldlight_t *r_shadow_worldlightchain; void R_Shadow_UpdateWorldLightSelection(void); +void R_Shadow_DrawStaticWorldLight_Shadow(worldlight_t *light, matrix4x4_t *matrix); +void R_Shadow_DrawStaticWorldLight_Light(worldlight_t *light, matrix4x4_t *matrix, vec3_t relativelightorigin, vec3_t relativeeyeorigin, float lightradius, float *lightcolor, const matrix4x4_t *matrix_modeltofilter, const matrix4x4_t *matrix_modeltoattenuationxyz, const matrix4x4_t *matrix_modeltoattenuationz); + #endif