Module darkplaces: Change committed

havoc at icculus.org havoc at icculus.org
Sat Feb 21 02:37:47 EST 2004


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : darkplaces
Commit time: 2004-02-21 07:37:47 UTC

Log message:

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

Modified files:
     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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20040221.073747.havoc.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20040221/0b5a0313/attachment.diff>


More information about the twilight-commits mailing list