Module darkplaces: Change committed
havoc at icculus.org
havoc at icculus.org
Wed Oct 16 17:48:25 EDT 2002
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : darkplaces
Commit time: 2002-10-16 21:48:24 UTC
Log message:
fixed some dynamic lighting bugs related to glowing self
rmeshstate_t now has alphascale
now clears stencil from shadows differently (draws shadow volume over again to clear)
R_LightModel now does GL_Color or GL_UseColorArray depending on whether the model has any shading
model->DrawBaseLighting function is gone, now just a few special cases in the normal Draw function
removed R_NotCulledBox
added PVS_CullBox, R_CullSphere, and PVS_CullSphere
visiblevolume flag is gone from shadow rendering code (visible volumes are now automatic depending on what stage the shadow system is in)
R_DrawShadowVolumes is gone (now just a special option to R_ShadowVolumeLighting)
cubemap textures now upload correctly
doubled the bumpyness of surfaces to make bumpmapping noticable (still less than tenebrae)
fixed crash when loading external map textures
now supports _luma as an alternate name for _glow map textures (tenebrae compatibility)
can now override _bump, _gloss, and _glow/_luma textures that were generated from the map
bumpmapping works on the map now (that was a stupid typo...)
now uses alpha buffering for multi-pass lighting effects
r_shadows 3 now works on Geforce2 (2tex no3D 3 pass per layer) and Radeon (2tex 3D 2 pass per layer - Radeon has 3 texture units but the lighting code is most efficient with 2 units, and 3D textures use up 2 texture units on Radeon... lame...)
gloss isn't working yet
r_shadows 3 mode supports up to 64x overbright lighting now (by rendering light multiple times)
fixed palettes (this fixes oddities like seeing sky behind fullbrights)
Modified files:
cl_main.c gl_backend.c gl_backend.h gl_models.c gl_rmain.c
gl_rsurf.c gl_textures.c image.c model_alias.c model_brush.c
model_brush.h model_shared.h model_sprite.c palette.c r_light.c
r_shadow.c r_shadow.h render.h vid_glx.c vid_wgl.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20021016.214824.havoc.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20021016/d5cf25ca/attachment.diff>
More information about the twilight-commits
mailing list