$allowdiffusemodulation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(also in gmod)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Page
{{LanguageBar}}
| strings = 3
| en = 3
| ru = 3
}}


{{Stub}}
{{Stub}}


'''{{Code|preset=0|$allowdiffusemodulation}}''' {{String
'''{{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.
| en = is a [[material]] [[shader]] parameter available in all {{Source|3}} games since {{L4d|4}} (also in {{Mapbase|4}}) for {{Code|[[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.
| ru = — это [[Material|текстурный]] параметр [[Shader|оттенения]], доступно во всех {{Source|3}} играх, начиная с {{L4d|4}} (также в {{Mapbase|4}}) для {{Code|[[VertexLitGeneric]]}}. Он предотвращает окрашивание материала параметрами <code>[[$color#$color2|$color2]]</code> и <code>rendercolor</code>. Этот параметр полезен в ситуациях, когда у вас есть модель, состоящая из нескольких материалов, некоторые из которых требуют окраски, а другие нет.
}}


{{Note|{{String
{{Note|This parameter exists as <code>[[$notint]]</code> in {{Csgo|4}}, {{gmod|4}} and {{P2ce|4}}.}}
| en = This parameter exists as <code>[[$notint]]</code> in {{csgo|4}} and {{P2ce|4}}.
{{confusion|Unlike most boolean VMT parameters, the default value is 1; setting to 0 disables tinting.}}
| ru = Этот параметр существует в {{Csgo|4}} и {{P2ce|4}} как <code>[[$notint]]</code>.
}}}}


== {{String
== Syntax ==
| en = Syntax
| ru = Синтаксис
}} ==
{{CodeBlock|'''$allowdiffusemodulation <[[Boolean|bool]]>'''}}
{{CodeBlock|'''$allowdiffusemodulation <[[Boolean|bool]]>'''}}


[[Category:Shader parameters|A]]
[[Category:Shader parameters|A]]

Latest revision as of 02:13, 15 June 2025

English (en)Русский (ru)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

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

Note.pngNote:This parameter exists as $notint in Counter-Strike: Global Offensive Counter-Strike: Global Offensive, Garry's Mod Garry's Mod and Portal 2: Community Edition Portal 2: Community Edition.
Warning.pngRisk of Confusion:Unlike most boolean VMT parameters, the default value is 1; setting to 0 disables tinting.

Syntax

$allowdiffusemodulation <bool>