Patch: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) No edit summary |
TomEdwards (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
;<code>include</code> | ;<code>include</code> | ||
:The base material from which to inherit. | :The base material from which to inherit. | ||
:{{note|The ''complete'' path is required, including <code>materials\</code> and <code>.vmt</code>.}} | |||
;<code>insert</code> | ;<code>insert</code> | ||
:The [[:Category:List of Shader Parameters|parameters]] to add, inside <code>{</code> and <code>}</code>. | :The [[:Category:List of Shader Parameters|parameters]] to add, inside <code>{</code> and <code>}</code>. Those that already exist are overridden. | ||
:{{tip|<code><parameter> ""</code> can be used to remove an established value.}} | :{{tip|<code><parameter> ""</code> can be used to remove an established value.}} | ||
Line 19: | Line 20: | ||
} | } | ||
} | } | ||
[[Category:List of Shaders]] | [[Category:List of Shaders]] |
Revision as of 08:33, 31 December 2008
Patch
is a special shader that allows materials to inherit from each other. This is achieved with two commands:
include
- The base material from which to inherit.
Note:The complete path is required, including
materials\
and.vmt
.insert
- The parameters to add, inside
{
and}
. Those that already exist are overridden. Tip:
<parameter> ""
can be used to remove an established value.
Patch
's only limitation is that it cannot change a material's shader.
Example
patch { include materials\models\infected\common\common_infected_shared.vmt insert { $basetexture models\infected\common\military_national_guard\common_military_upper_01 } }