%alphatexture

From Valve Developer Community
Revision as of 08:11, 20 March 2025 by SirYodaJedi (talk | contribs)
Jump to navigation Jump to search

%alphatexture is an internal material shader parameter available in Garry's Mod Garry's Mod. Used on static props when the prop is flagged for texture shadows and compiling VRAD with -textureshadows. The alpha channel of the specified VTF will be used instead of $basetexture, even if $alphatest and $translucent are absent.

Note.pngNote:As this parameter is only used by VRAD, the VTF mentioned does not need to be shipped with the map if it is unused elsewhere.
Todo: Implementing in custom VRAD; see GitHub commit which was used in gmod feature request.

Syntax

"VertexLitGeneric"
{
    $basetexture "models/props_custom/myprop_base"
    %alphatexture "models/props_custom/myprop_alpha"
}