Fullbright texture with transparency?

megawac

L4: Comfortable Member
Oct 2, 2009
180
29
Simple. Make your vtf file with a alpha channel where you want it to be transparent and have your vmt file look something like this:

Code:
"UnlitGeneric"
{
    "$translucent" 1
    "$baseTexture" "mytextures/hud/base/<vtf file name>"
    "$vertexcolor" 1
    "$no_fullbright" 1
    "$ignorez" 1
}
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
...the important part is the main shader should be UnlitGeneric. All those other properties (except for translucent obviously) would be bad to use most of the time, as they are for very specific material uses.