From cacee3270aab896156e5c4a426354ca40af876a6 Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Sat, 15 Mar 2003 19:42:13 +0000 Subject: [PATCH] Shadows on curves Added videos as textures --- gl_model.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gl_model.h b/gl_model.h index f630b1b..8c30d01 100644 --- a/gl_model.h +++ b/gl_model.h @@ -43,6 +43,14 @@ m*_t structures are in-memory #define EF_FULLDYNAMIC 16 +//PENTA: moved here, we needed it +typedef struct plane_s +{ + vec3_t normal; + float dist; +} plane_t; + + /* ============================================================================== @@ -102,6 +110,7 @@ typedef struct int width, height; qboolean mipmap; int type; + void *dynamic; //if this is set we have a texture with changing pixels (currently only roq's) } gltexture_t; #define SHADER_MAX_NAME 128 @@ -272,6 +281,7 @@ typedef struct mesh_s vec3_t *tangents; vec3_t *binormals; vec3_t *normals; + plane_t *triplanes; //per triangle plane eq's (for shadow volumes) int numvertices; int *indecies; @@ -285,6 +295,7 @@ typedef struct mesh_s int visframe; int lightTimestamp; mapshader_t *shader; + int lightmapIndex; struct mesh_s *next; //for the texture chains struct mesh_s *shadowchain;