X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=r_light.h;h=7af2aadc58d82251189657ae8f52a8e98f3f42e8;hb=9b86a6e8c23d2c0b8a2b15cefc52e0d8d5902c3b;hp=df11b53b3c41b6c4899eaace89cdaee4d6bcdd38;hpb=4d162c39ec059b7f3191fbb4fb18304bc9b1db59;p=xonotic%2Fdarkplaces.git diff --git a/r_light.h b/r_light.h index df11b53b..7af2aadc 100644 --- a/r_light.h +++ b/r_light.h @@ -1,22 +1,9 @@ -// LordHavoc: 256 dynamic lights -#define MAX_DLIGHTS 256 -typedef struct -{ - vec3_t origin; - float radius; - float die; // stop lighting after this time - float decay; // drop this each second - 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 -} dlight_t; +#ifndef R_LIGHT_H +#define R_LIGHT_H -// LordHavoc: this affects the lighting scale of the whole game -#define LIGHTOFFSET 4096.0f +void R_DrawCoronas(void); +void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic); -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); +#endif -extern int r_dlightframecount;