X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=r_light.h;h=84429ef2f47fcb0df835458eebf3e187c17a464c;hb=eaa3f27fa7a517dfae5bda9e7ed86f9d80e9c213;hp=bd8167be7a87adfe31cf2316ad5591d7ab6de57d;hpb=73adb98f44f142d436db71bdef5a9d3609b7127e;p=xonotic%2Fdarkplaces.git diff --git a/r_light.h b/r_light.h index bd8167be..84429ef2 100644 --- a/r_light.h +++ b/r_light.h @@ -1,18 +1,12 @@ -// 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 + +void R_DrawCoronas(void); +void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic); +int R_LightModel(float *ambient4f, float *diffusecolor, float *diffusenormal, const entity_render_t *ent, float colorr, float colorg, float colorb, float colora, int worldcoords); +void R_LightModel_CalcVertexColors(const float *ambientcolor4f, const float *diffusecolor, const float *diffusenormal, int numverts, const float *vertex3f, const float *normal3f, float *color4f); +void R_UpdateEntLights(entity_render_t *ent); + +#endif -// LordHavoc: this affects the lighting scale of the whole game -#define LIGHTOFFSET 16384.0f -#define LIGHTSCALE 4.0f -#define LIGHTSCALE2 4.0f