]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
rewrote how texture chains are handled, they are now stored outside the surfaces...
[xonotic/darkplaces.git] / model_shared.h
index 745f2ce5e4dcdf45d73a1049a9e5e654f250e1a9..1bcd0a19c6dce285e92c854a502ae018f1cacf26 100644 (file)
@@ -188,8 +188,6 @@ typedef struct model_s
        int                             numtextures;
        texture_t               *textures;
 
-       msurface_t              **texturesurfacechains;
-
        qbyte                   *visdata;
        qbyte                   *lightdata;
        char                    *entities;
@@ -203,11 +201,6 @@ typedef struct model_s
        int                             numlights;
        mlight_t                *lights;
 
-       // used only for casting dynamic shadow volumes
-       shadowmesh_t    *shadowmesh;
-       vec3_t                  shadowmesh_mins, shadowmesh_maxs, shadowmesh_center;
-       float                   shadowmesh_radius;
-
        // pvs visibility marking
        mleaf_t                 *pvsviewleaf;
        int                             pvsviewleafnovis;
@@ -215,6 +208,12 @@ typedef struct model_s
        mleaf_t                 *pvsleafchain;
        int                             *pvssurflist;
        int                             pvssurflistlength;
+       // these get rebuilt as the player moves around if this is the world,
+       // otherwise they are left alone (no pvs for bmodels)
+       msurface_t              ***pvstexturechains;
+       msurface_t              **pvstexturechainsbuffer;
+       int                             *pvstexturechainslength;
+
 
        // skin animation info
        animscene_t             *skinscenes; // [numskins]