Hi,
I've made props with specular maps before, but up to this point I made the specular maps a separate file, like so:
door_07.vmt
door_07_spec.vmt
With this for the door_07.vmt:
(This shows my specular maps correct)
Code
"vertexlitgeneric"
{
"$baseTexture" "models\props/door_07"
"$model" "1"
"$envmap" "env_cubemap"
"$envmapmask" "models\props/door_07_spec"
}
Display More
What I would like to do, is place the specular map in the base texture alpha channel. When I copy/paste that same spec map in the alpha channel and compile it, the whole model is being reflected. This is the code I use for when the spec map is in the base texture alpha channel:
Code
"vertexlitgeneric"
{
"$baseTexture" "models\props/door_07"
"$model" "1"
"$envmap" "env_cubemap"
"$basealphaenvmapmask" 1
"$envmapcontrast" 1
"$envmapsaturation" 1.5
"$envmaptint" "[0.4 0.4 0.4]"
}
Display More
The door itself shouldn't reflect, only the window. But the whole door reflects. But it does work when I use a separate _spec file. Anyone know whats up? Or should I just keep using separate _spec files and don't bother?
thanks!