]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - r_light.h
ac6d2563bdcb2f7eba706974c46340b7b548e1f0
[xonotic/darkplaces.git] / r_light.h
1
2 // LordHavoc: 256 dynamic lights
3 #define MAX_DLIGHTS             256
4 typedef struct
5 {
6         vec3_t  origin;
7         float   radius;
8         float   die;                            // stop lighting after this time
9         float   decay;                          // drop this each second
10         float   minlight;                       // don't add when contributing less
11         int             key;
12         vec3_t  color;                          // LordHavoc: colored lighting
13         qboolean        dark;                   // subtracts light instead of adding
14 } dlight_t;
15
16 // LordHavoc: this affects the lighting scale of the whole game
17 #define LIGHTOFFSET 16384.0f
18 #define LIGHTSCALE 4.0f