do not crash if loading a particlefont texture fails git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10669 d7cf8633-e32d-0410-b094-e92efae38249
someone broke R_CompleteLightPoint, fix this call git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10620 d7cf8633-e32d-0410-b094-e92efae38249
fix fog on particles (premultiplied alpha change was doing it wrong) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10615 d7cf8633-e32d-0410-b094-e92efae38249
particle rendering now uses premultiplied alpha (texture is automatically converted on load, however dds may need to be DXT4 rather than DXT5 now) this should give an fps boost git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10613 d7cf8633-e32d-0410-b094-e92efae38249
now that performance of cl_decals_newsystem is not terrible, enable it by default git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10612 d7cf8633-e32d-0410-b094-e92efae38249
use less R_Mesh_ResetTextureState calls for more performance git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10592 d7cf8633-e32d-0410-b094-e92efae38249
R_CompleteLightPoint bugfixed, dynamic lights actually matter for lit particles, lit sprites now sample lightning from rtlights and dlights instead of just lightgrid (by using R_CompleteLightPoint). git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10546 d7cf8633-e32d-0410-b094-e92efae38249
remove sparks if slower than sqrt(0.03) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10450 d7cf8633-e32d-0410-b094-e92efae38249
new cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range and fading for near clip of particles for speed optimization (fade them out before they become fullscreen) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10443 d7cf8633-e32d-0410-b094-e92efae38249
use TE_EXPLOSION in effectinfo.txt when encountering svc_particle with count 1024 (exploboxes) rather than calling the internal CL_ParticleExplosion directly, this allows people to override the effect git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10367 d7cf8633-e32d-0410-b094-e92efae38249
created new MSVC2008 project files and solution from scratch fixed several warnings in MSVC2008 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10266 d7cf8633-e32d-0410-b094-e92efae38249
fix a crash in particlefont.txt parser when given no texcoords git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10264 d7cf8633-e32d-0410-b094-e92efae38249
add DeviceLost and DeviceRestored functions to R_Modules system git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10263 d7cf8633-e32d-0410-b094-e92efae38249
fix a bunch of warnings if compiling darkplaces as C++ in MSVC2008 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10262 d7cf8633-e32d-0410-b094-e92efae38249
allow immediate stains in the new particle system to be turned off git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10249 d7cf8633-e32d-0410-b094-e92efae38249
jpeg: perform picmip levels 1, 2, 3 accelerated by telling libjpeg to decode at smaller resolution git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10242 d7cf8633-e32d-0410-b094-e92efae38249
DP_CSQC_BOXPARTICLES allow particles to be tinted, and trails to be modded in their spacing by the particle count factor git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10195 d7cf8633-e32d-0410-b094-e92efae38249
really fix multiple effectinfo.txt file loading git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10194 d7cf8633-e32d-0410-b094-e92efae38249
append maps/mapname_effectinfo.txt as intended git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10190 d7cf8633-e32d-0410-b094-e92efae38249
particles: apply rotation so that in the initial display frame of the particle, the start rotation min/max are shown git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10188 d7cf8633-e32d-0410-b094-e92efae38249