Patch: Difference between revisions
Jump to navigation
Jump to search
m (Category rename) |
m (otherlang2) |
||
| Line 1: | Line 1: | ||
{{otherlang2 | |||
|es=Patch:es | |||
}} | |||
'''<code>Patch</code>''' is a special shader that allows materials to [[Wikipedia:Inheritance (computer science)|inherit]] from each other. This is achieved with two commands: | '''<code>Patch</code>''' is a special shader that allows materials to [[Wikipedia:Inheritance (computer science)|inherit]] from each other. This is achieved with two commands: | ||
Revision as of 20:38, 22 November 2012
Template:Otherlang2
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.replace- The parameters to replace, inside
{and}. - Todo: Check if this is Orange-Box only. Seen in TF2.
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
}
}