]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
added r_surfaceworldnode and r_cullsurface cvars (it is recommended that these both...
[xonotic/darkplaces.git] / model_brush.h
index 6f24b259ee5dba7e6e71e4dd34f27f929cdd246f..cd53901daf7d529730061e70d05bcfe3b5b52164 100644 (file)
@@ -141,6 +141,8 @@ typedef struct msurface_s
        int                     visframe;
        // should be drawn if onscreen and not a backface (used for setting visframe)
        int                     pvsframe;
+       // chain of surfaces marked visible by pvs
+       struct msurface_s       *pvschain;
 
        // the node plane this is on, backwards if SURF_PLANEBACK flag set
        mplane_t        *plane;
@@ -235,8 +237,6 @@ typedef struct mnode_s
        vec3_t                          mins;
        vec3_t                          maxs;
 
-       int                                     pvsframe;               // potentially visible if current (r_pvsframecount)
-
 // node specific
        mplane_t                        *plane;
        struct mnode_s          *children[2];
@@ -258,10 +258,8 @@ typedef struct mleaf_s
        vec3_t                          mins;
        vec3_t                          maxs;
 
-       int                                     pvsframe;               // potentially visible if current (r_pvsframecount)
-
 // leaf specific
-       int                                     visframe;               // visible if current (r_framecount)
+       int                                     pvsframe;               // potentially visible if current (r_pvsframecount)
        int                                     worldnodeframe; // used by certain worldnode variants to avoid processing the same leaf twice in a frame
        int                                     portalmarkid;   // used by polygon-through-portals visibility checker