Materials override

From Valve Developer Community
< SFM
Revision as of 06:07, 1 August 2023 by Alope (talk | contribs) (Added $detailblendfactor to the list of attributes that can be overridden)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

To add materials override you need to right click on animation set and select "Add override materials". This will allow you to see "materials" folder if you open this model in Element Viewer. There you will be able to open any material and add some custom attributes that will override corresponding parameter in this model VMT file.

Types of attributes that can be overridden (or added) in SFM: WIP - to be added

List of attributes that can be overridden (or added) in SFM:

$basetexture<String>
VTF path for texture replacement
$phong<Float>
brightness of phong effect
$color<RGB Material Vector>
changes color of the material.
$detailblendfactor<Normal>
Controls the amount that the detail texture affects the base texture. A value of 0 usually makes the detail texture have no effect, whilst a value of 1 applies the full effect.

WIP - more to be added

List of attributes that cannot be overridden (or added) in SFM: WIP - to be added