Patch: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (The "" isn't required if no spaces or special characters are used, I think.) |
||
Line 8: | Line 8: | ||
:{{note|<tt>Patch</tt> material including other <tt>Patch</tt> materials seems to work fine in {{sfm}}.}} | :{{note|<tt>Patch</tt> material including other <tt>Patch</tt> materials seems to work fine in {{sfm}}.}} | ||
== Example == | ==Example== | ||
'''patch''' | '''patch''' | ||
{ | { | ||
Line 14: | Line 14: | ||
'''insert''' | '''insert''' | ||
{ | { | ||
$basetexture | $basetexture models\infected\common\military_national_guard\common_military_upper_01 | ||
} | } | ||
} | } |
Revision as of 05:34, 11 September 2023
Patch
It 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 }.
Patch's only limitations are that it cannot change a material's shader, and a Patch
material cannot use include
to inherit from another Patch
material.
Example
patch { include materials\models\infected\common\common_infected_shared.vmt insert { $basetexture models\infected\common\military_national_guard\common_military_upper_01 } }