]> git.xonotic.org Git - xonotic/darkplaces.git/commit
moved light matrix generation out of the render code and into the light creation...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2004 07:37:36 +0000 (07:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2004 07:37:36 +0000 (07:37 +0000)
commit093c41bf532834207d8a23df44f5b39fa707815d
tree8178c6dd22e67fdc3c8234cb64799a2a84f79b46
parent280dfec993b7638197739853a87e64384381f3e9
moved light matrix generation out of the render code and into the light creation code (rtlight and dlight setup) to save time and simplify things
rtlights and dlights now have an orientation matrix (this allows cubemaps to be rotated)
rtlights can now have corona flares, and it is adjustable per light (also on dlights)
r_coronas cvar now controls corona intensity, and menu now has r_coronas slider instead of checkbox
dlights now have color[]/radius settings instead of just colored intensity, so the radius can be independently controlled again (this mainly improves realtime dlight behaviors)
dlights can now have cubemaps, light styles, optional shadows (rather than always on), and better color/radius settings (and all this is tenebrae compatible) using the light_lev, color, style, skin (cubemap number, only available if modelindex is 0), and pflags (1 is no shadow, 2 is draw corona which is ignored by darkplaces because it always draws a corona) fields in the quakec entities
now supports tenebrae dlight fields (light_lev, color, style, pflags), this means dlights can now have cubemaps (skin, only used if modelindex is 0), light style (style), color (color) and radius (light_lev) with more precision than glow_ fields, and pflags (flag 1 is no shadow, flag 2 is corona which is ignored because dlights always have a corona in darkplaces), also loads tenebrae mods
added TENEBRAE_GFX_DLIGHTS extension

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3913 d7cf8633-e32d-0410-b094-e92efae38249
27 files changed:
cgame_api.h
cgamevm.c
cl_main.c
cl_parse.c
client.h
common.c
common.h
gl_models.c
gl_rmain.c
gl_rsurf.c
menu.c
model_alias.c
model_brush.c
model_shared.h
pr_cmds.c
pr_edict.c
progs.h
protocol.c
protocol.h
r_light.c
r_light.h
r_shadow.c
r_shadow.h
server.h
sv_main.c
sv_phys.c
todo