Difference between revisions of "$allowdiffusemodulation"

From Valve Developer Community
Jump to: navigation, search
(Added engine branch information, unified text with $notint)
(Changed to use shaderparam template, misc fixes)
 
Line 1: Line 1:
'''<code>[[$allowdiffusemodulation]]</code>''' is a [[VMT]] command introduced in {{l4d}} that prevents a material from being tinted by either <code>[[$color#Models|$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.
+
{{Shaderparam|$allowdiffusemodulation|since=Left 4 Dead|shader1=VertexLitGeneric}} It prevents a material from being tinted by either <code>[[$color#Models|$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 [[$notint]] in {{csgo}}.}}
+
{{note|This parameter exists as {{ent|$notint}} in {{csgo}}.}}
 
==Syntax==
 
==Syntax==
 
  $allowdiffusemodulation <[[bool]]>
 
  $allowdiffusemodulation <[[bool]]>
  
 
[[Category:List of Shader Parameters|A]]
 
[[Category:List of Shader Parameters|A]]

Latest revision as of 20:06, 9 June 2019

$allowdiffusemodulation is a material shader parameter available in all Source games since <Left 4 Dead> Left 4 Dead 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.

Note:This parameter exists as $notint in <Counter-Strike: Global Offensive>.

Syntax

$allowdiffusemodulation <bool>