X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=r_light.h;h=6e29e589b0a65c03948e136a64174e44117751b9;hp=bd8167be7a87adfe31cf2316ad5591d7ab6de57d;hb=be8d986d89e9ac7408134d9570ec398e535536e8;hpb=73adb98f44f142d436db71bdef5a9d3609b7127e diff --git a/r_light.h b/r_light.h index bd8167be..6e29e589 100644 --- a/r_light.h +++ b/r_light.h @@ -7,12 +7,14 @@ typedef struct float radius; float die; // stop lighting after this time float decay; // drop this each second - int key; + entity_t *ent; // the entity that spawned this light (can be NULL if it is not to be replaced repeatedly) vec3_t color; // LordHavoc: colored lighting - qboolean dark; // subtracts light instead of adding } dlight_t; // LordHavoc: this affects the lighting scale of the whole game -#define LIGHTOFFSET 16384.0f -#define LIGHTSCALE 4.0f -#define LIGHTSCALE2 4.0f +#define LIGHTOFFSET 4096.0f + +extern void R_CompleteLightPoint (vec3_t color, vec3_t p, int dynamic); +extern void R_DynamicLightPoint(vec3_t color, vec3_t org, int *dlightbits); +extern void R_DynamicLightPointNoMask(vec3_t color, vec3_t org); +extern void R_LightPoint (vec3_t color, vec3_t p);