]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
lightmap update checking is now handled very differently; each brush model has a...
[xonotic/darkplaces.git] / model_brush.h
index 557c2ce5b67482c17453729865d7ff1baf8b65f6..8870e9654e46ed5d1a47fdc33a4cf2e57b12da51 100644 (file)
@@ -186,8 +186,6 @@ typedef struct msurface_s
        mplane_t *plane;
        // SURF_ flags
        int flags;
        mplane_t *plane;
        // SURF_ flags
        int flags;
-       // rendering chain
-       struct msurface_s *texturechain;
 
        // look up in model->surfedges[], negative numbers are backwards edges
        int firstedge;
 
        // look up in model->surfedges[], negative numbers are backwards edges
        int firstedge;
@@ -221,13 +219,16 @@ typedef struct msurface_s
        vec3_t poly_mins, poly_maxs, poly_center;
 
        // neighboring surfaces (one per poly_numverts)
        vec3_t poly_mins, poly_maxs, poly_center;
 
        // neighboring surfaces (one per poly_numverts)
-       struct msurface_s **neighborsurfaces;
+       //struct msurface_s **neighborsurfaces;
        // currently used only for generating static shadow volumes
        int castshadow;
 
        // these are regenerated every frame
        // lighting info
        // currently used only for generating static shadow volumes
        int castshadow;
 
        // these are regenerated every frame
        // lighting info
+       // if this == r_framecount there are dynamic lights on the surface
        int dlightframe;
        int dlightframe;
+       // which dynamic lights are touching this surface
+       // (only access this if dlightframe is current)
        int dlightbits[8];
        // avoid redundent addition of dlights
        int lightframe;
        int dlightbits[8];
        // avoid redundent addition of dlights
        int lightframe;