X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=model_brush.h;h=f109b1d94cd40872a432633b4b7a9db619ca0435;hp=80756e39dbe76a30782eb1ae9525f490bd6a032c;hb=1740f737276f086c2f19758f72881a20e5070b57;hpb=c521eda19f9f97d11ec59e8ae6e8cc81c1890b67 diff --git a/model_brush.h b/model_brush.h index 80756e39..f109b1d9 100644 --- a/model_brush.h +++ b/model_brush.h @@ -143,11 +143,13 @@ typedef struct surfmesh_s int numverts; int numtriangles; float *verts; + float *normals; int *lightmapoffsets; float *st; float *uv; float *ab; int *index; + int *triangleneighbors; } surfmesh_t; @@ -200,6 +202,8 @@ typedef struct msurface_s float *poly_verts; // bounding box for onscreen checks, and center for sorting vec3_t poly_mins, poly_maxs, poly_center; + // bounding sphere radius (around poly_center) + float poly_radius, poly_radius2; // these are regenerated every frame // lighting info @@ -315,6 +319,12 @@ typedef struct mlight_s float distbias; // light style controlling this light int style; + // maximum extent of the light for various purposes + float cullradius; + float cullradius2; + // surfaces this shines on + int numsurfaces; + msurface_t **surfaces; // used only for loading calculations, number of leafs this shines on //int numleafs; }