Module darkplaces: Change committed

havoc at icculus.org havoc at icculus.org
Thu Feb 8 10:57:31 EST 2007


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : darkplaces
Commit time: 2007-02-08 15:57:31 UTC

Log message:

removed CL_UpdateEntities call in CSQC rendering code
changed r_refdef.lights from dlight_t * to rtlight_t (no longer a pointer)
modified CL_UpdateLights to setup the r_refdef.lights[] entry instead of merely pointing to the rtlight_t in the dlight_t struct
changed csqc dlight handling to comply with the spec (R_ClearScene resets r_refdef.numlights, then VM_R_AddEntities adds all engine-based entities and lights)
moved single-frame dlight spawning for rocket glow and such from CL_UpdateNetworkEntity to CL_LinkNetworkEntity (which is called by VM_R_AddEntities)
replaced all single-frame uses of CL_AllocDLight with R_RTLight_Update(&r_refdef.lights[r_refdef.numlights++], ...) calls, this includes lights such as muzzleflash, rocket glow, .glow_size lights, tenebrae dlights, etc
renamed CL_AllocDlight to CL_AllocLightFlash
renamed CL_DecayLights to CL_DecayLightFlashes
renamed CL_UpdateLights to CL_RelinkLightFlashes
renamed CL_ParticleEffect to CL_ParticleTrail and added spawndlight/spawnparticles boolean parameters, then added a CL_ParticleEffect which calls this with true for both
removed cubemapnum field from dlight_t

Modified files:
     cl_main.c cl_parse.c cl_particles.c client.h clvm_cmds.c
     csprogs.c r_light.c r_shadow.c r_shadow.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20070208.155731.havoc.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20070208/86466f8c/attachment.diff>


More information about the twilight-commits mailing list