$allowdiffusemodulation: Difference between revisions
Jump to navigation
Jump to search
Note:This parameter exists as
Counter-Strike: Global Offensive,
Garry's Mod and
Portal 2: Community Edition.
Risk of Confusion:Unlike most boolean VMT parameters, the default value is 1; setting to 0 disables tinting.
SirYodaJedi (talk | contribs) No edit summary |
(also in gmod) |
||
Line 5: | Line 5: | ||
'''{{Code|preset=0|$allowdiffusemodulation}}''' is a [[material]] [[shader]] parameter available in all {{Source|3}} games since {{L4d|4}} (also in {{Mapbase|4}}) for [[VertexLitGeneric]]. It prevents a material from being tinted by either <code>[[$color#$color2|$color2]]</code> or the <code>rendercolor</code> parameter. This is useful for situations where you have a [[model]] made up of multiple materials, some which you might want tint-able and some not. | '''{{Code|preset=0|$allowdiffusemodulation}}''' is a [[material]] [[shader]] parameter available in all {{Source|3}} games since {{L4d|4}} (also in {{Mapbase|4}}) for [[VertexLitGeneric]]. It prevents a material from being tinted by either <code>[[$color#$color2|$color2]]</code> or the <code>rendercolor</code> parameter. This is useful for situations where you have a [[model]] made up of multiple materials, some which you might want tint-able and some not. | ||
{{Note|This parameter exists as <code>[[$notint]]</code> in {{Csgo|4}} and {{P2ce|4}}.}} | {{Note|This parameter exists as <code>[[$notint]]</code> in {{Csgo|4}}, {{gmod|4}} and {{P2ce|4}}.}} | ||
{{confusion|Unlike most boolean VMT parameters, the default value is 1; setting to 0 disables tinting.}} | {{confusion|Unlike most boolean VMT parameters, the default value is 1; setting to 0 disables tinting.}} | ||
Latest revision as of 02:13, 15 June 2025
$allowdiffusemodulation is a material shader parameter available in all Source games since Left 4 Dead (also in
Mapbase) for VertexLitGeneric. It prevents a material from being tinted by either
$color2
or the rendercolor
parameter. This is useful for situations where you have a model made up of multiple materials, some which you might want tint-able and some not.

$notint
in 


