improved TraceLine in chase.c to be more generally useful (should move it to another...
[divverent/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         int             key;
11         vec3_t  color;                          // LordHavoc: colored lighting
12         qboolean        dark;                   // subtracts light instead of adding
13 } dlight_t;
14
15 // LordHavoc: this affects the lighting scale of the whole game
16 //#define LIGHTOFFSET 16384.0f
17 //#define LIGHTSCALE1 2.0f
18 #define LIGHTOFFSET 4096.0f
19 #define LIGHTSCALE1 1.0f
20 #define LIGHTSCALE (LIGHTSCALE1*LIGHTSCALE1)
21 #define LIGHTSCALE2 LIGHTSCALE