Patching fence models for textureshadows
Some VMT's in L4D2 incorrectly specify the .vtf file extension in the $basetexture, this causes VRAD to not pick them up from models that use them, that have forcetextureshadow specified in your lights file.
This simple workaround overrides these materials (or some of them), mainly for fences models, so that shadows will be cast correctly.
pak01_dir.vpk
| An override of some of the materials with $basetexture corrected when using -textureshadows |
texture_shadow_fix.rad
|
A sample lights.rad file, feel free to add/delete models, most fence models are included.
|
How to use
In your left 4 dead 2 folder (where the dlc's and update folder is stored), add a directory called
vrad_patch, place the vpk file in this directory.
Now you need to edit the game to use this. *Note that you may have to re-do this after verifying integrity, or maybe not.
Go to your gameinfo.txt file, usually located at
C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\left4dead2\gameinfo.txt (or C:\Program Files\Steam\steamapps\common\left 4 dead 2\left4dead2\gameinfo.txt for 32-bit installations)
Under SearchPaths, add a line above update
Game vrad_patch
For them to actually do anything, you'll need to add a couple options to
vrad
-lights texture_shadow_fix.rad -textureshadows