You need to edit all vmt's you want to use (lol). Be prepared for a little work
Use a program (eg gcfscape) to extract the vmt's from the gcf files
(they are in 'materials/skybox' in 'source materials.gcf' )
There are six of them ( %skyname%%ext%.vmt )
%skyname% is the name of your skybox, eg. sky_day03_03
%ext% is the extension, eg. ft,bk,lf,rt,dn,up)
so make each one read:
- Code: Select all
"UnlitGeneric"
{
// Original shader: BaseTexture
"$hdrbasetexture" "skybox/%skyname%_hdr%ext%"
"$basetexture" "skybox/%skyname%%ext%"
"$nofog" "1"
"$ignorez" "1"
}
Offcourse youll need to make hdr skyboxes...This is very stupid, as most mods dont support hdr, and still valve expects you to have hdr skyboxes
I guess if you CBA to make HDR skyboxes, you can link $hdrbasetexture to your normal texture...I dont know if that will cause errors though. I just tested it by linking to a HDR skybox from lostcoast and it seemed to work (atleast there were no errors)
Save the files in your moddir (materials/skybox) and it should work. Note that you may need to ship the vmt's with your map, im not sure about that though