]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
optimized trianglefacing calculation, per Vic's recommendation (yes it's all one...
[xonotic/darkplaces.git] / model_brush.h
index f109b1d94cd40872a432633b4b7a9db619ca0435..8424b538566f2004b97559b73f074226fe8916ee 100644 (file)
@@ -301,6 +301,15 @@ typedef struct mportal_s
 }
 mportal_t;
 
+typedef struct mlightshadowvolumemesh_s
+{
+       struct mlightshadowvolumemesh_s *next;
+       int numverts;
+       int numtris;
+       float *vertex;
+}
+mlightshadowvolumemesh_t;
+
 typedef struct mlight_s
 {
        // location of light
@@ -325,6 +334,8 @@ typedef struct mlight_s
        // surfaces this shines on
        int numsurfaces;
        msurface_t **surfaces;
+       // precomputed shadow volume meshs
+       mlightshadowvolumemesh_t *shadowvolumemeshs;
        // used only for loading calculations, number of leafs this shines on
        //int numleafs;
 }