]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.h
added r_shadow_showtris
[xonotic/darkplaces.git] / r_shadow.h
index 61524f7c31cea00b26e23840965a9b629e5a9412..2e1a9d4cac078f34febd0bbb2a78de217ef2419a 100644 (file)
@@ -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