32 #define STAGE_TEXTURE (1 << 0)
33 #define STAGE_ENVMAP (1 << 1)
34 #define STAGE_BLEND (1 << 2)
35 #define STAGE_COLOR (1 << 3)
36 #define STAGE_PULSE (1 << 4)
37 #define STAGE_STRETCH (1 << 5)
38 #define STAGE_ROTATE (1 << 6)
39 #define STAGE_SCROLL_S (1 << 7)
40 #define STAGE_SCROLL_T (1 << 8)
41 #define STAGE_SCALE_S (1 << 9)
42 #define STAGE_SCALE_T (1 << 10)
43 #define STAGE_TERRAIN (1 << 11)
44 #define STAGE_TAPE (1 << 12)
45 #define STAGE_LIGHTMAP (1 << 13)
46 #define STAGE_ANIM (1 << 14)
47 #define STAGE_DIRTMAP (1 << 15)
48 #define STAGE_FLARE (1 << 16)
49 #define STAGE_GLOWMAPLINK (1 << 17)
52 #define STAGE_LIGHTING (1 << 30)
55 #define STAGE_RENDER (1 << 31)
58 #define STAGE_TEXTURE_MATRIX ( \
59 STAGE_STRETCH | STAGE_ROTATE | STAGE_SCROLL_S | STAGE_SCROLL_T | \
60 STAGE_SCALE_S | STAGE_SCALE_T \
64 #define MAX_ANIM_FRAMES 16
66 #define UPDATE_THRESHOLD 0.02
150 #define DEFAULT_BUMP 1.0f
151 #define DEFAULT_PARALLAX 1.0f
152 #define DEFAULT_SPECULAR 0.2f
153 #define DEFAULT_HARDNESS 0.2f
154 #define DEFAULT_GLOWSCALE 1.0f
void R_LoadMaterials(const char *map)
Load material definitions for each map that has one.
struct blendmode_s blendmode_t
struct material_s material_t
struct image_s * images[MAX_ANIM_FRAMES]
struct materialStage_s materialStage_t
struct terrain_s terrain_t
void R_UpdateDefaultMaterial(const char *cvarName, const char *oldValue, const char *newValue, void *data)
Change listener callback for material value cvars.
material_t defaultMaterial
GLsizei const GLvoid * data
struct stretch_s stretch_t
struct materialStage_s * next