Better perspective effect for SPR_OVERHEAD, added global xy scale for them. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10689 d7cf8633-e32d-0410-b094-e92efae38249
fix a stupid extra declaration in the glsl shader git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10688 d7cf8633-e32d-0410-b094-e92efae38249
add a trivial quarter-res S3TC decoder to DDS loading git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10679 d7cf8633-e32d-0410-b094-e92efae38249
r_showsurfaces: fix "ghost normals" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10674 d7cf8633-e32d-0410-b094-e92efae38249
equalize entities: desaturate the lightgrid when equalizing fullbright entities git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10673 d7cf8633-e32d-0410-b094-e92efae38249
fix display of r_shownormals < 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10670 d7cf8633-e32d-0410-b094-e92efae38249
fix glgl water trick that doesnt work well (it was doing 0.5 alphamod near egges) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10666 d7cf8633-e32d-0410-b094-e92efae38249
found out why the water plane issue happend: namely, when a water plane is backface culled, R_Water_FindPlane may not find ANY plane. Remove the print, ignore the damage it causes (as the damage only consists of some additional tris being rendered that should not, but instead less batches). git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10662 d7cf8633-e32d-0410-b094-e92efae38249
remove another useless check git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10661 d7cf8633-e32d-0410-b094-e92efae38249
fix a case where r_hdr 1 can cause message spam (previously: crashes) for not existing but referenced waterplanes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10660 d7cf8633-e32d-0410-b094-e92efae38249
do not crash if no matching water plane could be found (BUT WHY DOES THIS HAPPEN TO BEGIN WITH) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10659 d7cf8633-e32d-0410-b094-e92efae38249
allow rtdlight off, rtworld on git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10647 d7cf8633-e32d-0410-b094-e92efae38249
fix random white pixels with r_shadow_glossexact caused by unnormalized VectorS/T/R git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10644 d7cf8633-e32d-0410-b094-e92efae38249
move r_stereo adjustments into R_RenderView so that it executes AFTER CSQC may have adjusted the view. Makes redblue stereo work even in steel storm. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10626 d7cf8633-e32d-0410-b094-e92efae38249
use r_smoothnormals_areaweighting cvar on all calls to Mod_BuildNormals and Mod_BuildTextureVectorsFromNormals - rather than assuming the artist wanted area weighted, as if the normalmap was baked for non-area-weighted tangents this just yields wrong results git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10621 d7cf8633-e32d-0410-b094-e92efae38249
CL_VM_GetLight: allow 2'nd optional parm which sets sampling mask: 1 lightmap (default one), 2 worldrtlight, 4 - dlight. Added getlights2 to the csprogdefs.qc. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10619 d7cf8633-e32d-0410-b094-e92efae38249
fix camera texture colors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10617 d7cf8633-e32d-0410-b094-e92efae38249
do not generate vertexposition/vertexmesh arrays in RSurf_ActiveCustomEntity, this is a major fps aid use vertex3f rather than vertexposition array in entity decal handling make fewer calls to R_Mesh_ResizeArrays git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10611 d7cf8633-e32d-0410-b094-e92efae38249
fix some HLSL errors fix a warning on some ft2 code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10597 d7cf8633-e32d-0410-b094-e92efae38249
skip zero triangle batches, for good measure git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10594 d7cf8633-e32d-0410-b094-e92efae38249