$translucent
Jump to navigation
Jump to search
The $translucent VMT command Specifies that the material should use the alpha channel of the $basetexture.VTF to mask transparent sections of the material. It is available with UnlitGeneric, VertexLitGeneric, LightmappedGeneric and many more shaders.


VMT syntax example
LightmappedGeneric { $basetexture "decals/mydecal" $decal 1 $decalscale 0.10 $translucent 1 }
$additive
$additive 1
- Renders the texture additively - its colors are add, instead of replacing, what is displayed behind it.
$alpha
$alpha <float>
Scales overall material opacity by the 'float' number.
Every pixel with an alpha value less than 178 will be completely transparent in game. However, values close to this value will confuse the shader at distances (see $alphatest).