X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=r_light.h;h=7af2aadc58d82251189657ae8f52a8e98f3f42e8;hp=4d7bcb551a66b9bbefddef7142f41fab750cba6b;hb=cb872df2ca589d4b30c733dc239986dfd64f0c12;hpb=e4b3858e7aca0ead91be1d8f675db084d025abad diff --git a/r_light.h b/r_light.h index 4d7bcb55..7af2aadc 100644 --- a/r_light.h +++ b/r_light.h @@ -1,21 +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 - int key; - vec3_t color; // LordHavoc: colored lighting - qboolean dark; // subtracts light instead of adding -} 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); + +#endif -extern void R_CompleteLightPoint (vec3_t color, vec3_t p); -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);