X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=model_shared.h;h=516cf45f805e04889cd7d5576da1a67af66f7d97;hp=779da1f64bb18a9c8fcefd7429dc360b8c9b0ca3;hb=ea4fc545e8444f579d88d8f096b054dcd7bc482f;hpb=0e6ee75ea28c1f0f9027b698779d945c71e65213 diff --git a/model_shared.h b/model_shared.h index 779da1f6..516cf45f 100644 --- a/model_shared.h +++ b/model_shared.h @@ -549,8 +549,6 @@ typedef struct model_s int flags; // engine calculated flags, ones that can not be set in the file int flags2; - // LordHavoc: if true (normally only for sprites) the model/sprite/bmodel is always rendered fullbright - int fullbright; // number of QC accessible frame(group)s in the model int numframes; // number of QC accessible skin(group)s in the model @@ -641,6 +639,7 @@ extern char loadname[32]; // for hunk tags int Mod_BuildVertexRemapTableFromElements(int numelements, const int *elements, int numvertices, int *remapvertices); void Mod_BuildTriangleNeighbors(int *neighbors, const int *elements, int numtriangles); void Mod_ValidateElements(const int *elements, int numtriangles, int numverts, const char *filename, int fileline); +void Mod_BuildNormals(int numverts, int numtriangles, const float *vertex3f, const int *elements, float *normal3f); void Mod_BuildTextureVectorsAndNormals(int numverts, int numtriangles, const float *vertex, const float *texcoord, const int *elements, float *svectors, float *tvectors, float *normals); shadowmesh_t *Mod_ShadowMesh_Alloc(mempool_t *mempool, int maxverts, int maxtriangles, rtexture_t *map_diffuse, rtexture_t *map_specular, rtexture_t *map_normal, int light, int neighbors, int expandable);