Module darkplaces: Change committed

havoc at icculus.org havoc at icculus.org
Sat Apr 7 08:36:35 EDT 2007


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : darkplaces
Commit time: 2007-04-07 12:36:35 UTC

Log message:

player model no longer shadows gun model
technical explanation: this was done by adding a RENDER_NOSELFSHADOW flag which is used on view models, this flag prevents any entities using the flag from shadowing themselves or eachother...  then another hack was added to queue the shadowing of the RENDER_EXTERIORMODEL entities in the RENDER_NOSELFSHADOW batch (so it does not shadow other RENDER_NOSELFSHADOW entities), but still have it receive shadows by lighting it in the normal self-shadowing batch...   In more general use the RENDER_NOSELFSHADOW flag could be used to make characters not shadow themselves (like in Doom3), however r_shadow_frontsidecasting 0 is a better approach to that problem (partial self-shadowing characters)

Modified files:
     cl_main.c csprogs.c gl_rsurf.c protocol.c protocol.h r_shadow.c
     todo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20070407.123635.havoc.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20070407/b89be355/attachment.diff>


More information about the twilight-commits mailing list