]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
temporarily disabled compiled rtlights (they'll make a comeback after dynamic rtlight...
[xonotic/darkplaces.git] / model_shared.h
index 1cd9d5ba80d0667e73ff0bb2ca4b7a539a4cd2dd..b16ee206e7f45404918e7ad79fe9220fb1d3cf61 100644 (file)
@@ -175,6 +175,9 @@ typedef struct model_brush_s
        //pvschain = model->brush.data_pvsclusters + mycluster * model->brush.num_pvsclusterbytes;
        //if (pvschain[thatcluster >> 3] & (1 << (thatcluster & 7)))
 
+       // a mesh containing all shadow casting geometry for the whole model (including submodels), portions of this are referenced by each surface's num_firstshadowmeshtriangle 
+       shadowmesh_t *shadowmesh;
+
        // common functions
        int (*SuperContentsFromNativeContents)(struct model_s *model, int nativecontents);
        int (*NativeContentsFromSuperContents)(struct model_s *model, int supercontents);
@@ -445,6 +448,9 @@ typedef struct q3mface_s
        int *data_element3i;
        int *data_neighbor3i;
 
+       // index into model->brush.shadowmesh
+       int num_firstshadowmeshtriangle;
+
        // temporary use by light processing
        int lighttemp_castshadow;
 }