Alphatexture: Difference between revisions
Jump to navigation
Jump to search
Note: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.
SirYodaJedi (talk | contribs) (Created page with "{{this is a|shader parameter|internal=1<!--is there a better way to do this?-->|name=%alphatexture|game=Garry's Mod}} Used on static props when the prop is flagged for texture shadows and compiling VRAD with {{code|-textureshadows}}. The alpha channel of the specified VTF will be used instead of {{ent|$basetexture}}, even if {{ent|$alphatest}} and {{ent|$translucent}} are absent. {{todo|Implementing in custom VRAD; see [https://github.com/Yuis-Archives/sourc...") |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
Used on [[static prop]]s when the prop is flagged for [[texture shadows]] and compiling [[VRAD]] with {{code|-textureshadows}}. The alpha channel of the specified VTF will be used instead of {{ent|$basetexture}}, even if {{ent|$alphatest}} and {{ent|$translucent}} are absent. | Used on [[static prop]]s when the prop is flagged for [[texture shadows]] and compiling [[VRAD]] with {{code|-textureshadows}}. The alpha channel of the specified VTF will be used instead of {{ent|$basetexture}}, even if {{ent|$alphatest}} and {{ent|$translucent}} are absent. | ||
{{note|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 [https://github.com/Yuis-Archives/source-sdk-2013_vs2022/commit/ea77f7d0172f70f06110b54bc83caf2c5919804d GitHub commit which was used in gmod feature request].}} | {{todo|Implementing in custom VRAD; see [https://github.com/Yuis-Archives/source-sdk-2013_vs2022/commit/ea77f7d0172f70f06110b54bc83caf2c5919804d GitHub commit which was used in gmod feature request].}} | ||
Revision as of 08:11, 20 March 2025
%alphatexture
is an internal material shader parameter available in 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.

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"
}