Jump to content

[Half-Life 2] Model with Normal map and specular


mjens

Recommended Posts

They're just specified in the .vmt if I recall correctly. Been a few months since I did this.

There should be some info on the valve dev wiki here with the stuff you have to enter in. One tip though is you should store your spec map in the alpha channel of your normal map image file and use:

"$normalmapalphaenvmapmask" 1

for pointing the vmt to it. At least I think that's the common practice and the 'cleanest' way to store all this stuff. Or so I found, I could be wrong there.

Link to comment
Share on other sites

When you export an SMD from Max 9, it takes the name of the texture in the diffuse channel and exports that for each face.

Source doesnt actually use that texture, what it does is look for a VMT file for the same name, so if your diffuse texture was "mytexture.tga" Source will be looking for "mytexture.vmt" in each of the material paths you specify in your QC.

Inside the VMT file itself is where you set-up your components for the shader, i.e. specular, diffuse, exponent, etc.

Link to comment
Share on other sites

×
×
  • Create New...