Module darkplaces: Change committed

havoc at icculus.org havoc at icculus.org
Sat Apr 7 04:07:20 EDT 2007


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : darkplaces
Commit time: 2007-04-07 08:07:19 UTC

Log message:

added GL_DepthRange function and MATERIALFLAG_SHORTDEPTHRANGE (now used by viewmodels), this prevents viewmodels from poking into walls
changed EF_NODEPTHTEST code to set MATERIALFLAG_SHORTDEPTHRANGE instead of MATERIALFLAG_NODEPTHTEST, this causes proper rendering of opaque models (such as the held item in prydon gate)
this also reenabled stencil shadows on view models but they render as if they are very very small (due to MATERIALFLAG_SHORTDEPTHRANGE)
changed default value of cl_viewmodel_scale from 0.3 to 1, this makes stereo rendering look better (small gun model looks silly when you can actually see that it is small) and makes rtlight cubemaps affect the gun more realistically

Modified files:
     cl_particles.c cl_screen.c darkplaces.txt gl_backend.c
     gl_backend.h gl_draw.c gl_rmain.c gl_rsurf.c model_brush.h
     r_explosion.c r_light.c r_lightning.c r_shadow.c r_sky.c
     r_sprites.c render.h view.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20070407.080719.havoc.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20070407/b269b783/attachment.diff>


More information about the twilight-commits mailing list