SFM/Materials override: Difference between revisions

From Valve Developer Community
< SFM
Jump to navigation Jump to search
No edit summary
(Revamping this page, currently work in progress. There is a LOT of information missing here that needs to be added.)
Line 3: Line 3:


List of attributes that could be overridden (or added) in SFM:
List of attributes that could be overridden (or added) in SFM:
* [[$basetexture|$basetexture]] (<[[String|String]]>) – VTF path for texture replacement;
{{def|code=1|[[$basetexture|$basetexture]]|type=[[String|String]]}} VTF path for texture replacement
* [[$phong|$phong]] (<[[Float|Float]]>) – brightness of phong effect;
{{def|code=1|[[$phong|$phong]]|type=[[Float|Float]]}} brightness of phong effect
* [[$color|$color]] (<Color>) – changes color of the material.
{{def|code=1|[[$color|$color]]|type=[[RGB|RGB]] [[Material_vector|Material Vector]]}} changes color of the material.
 
WIP - more to be added


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

Revision as of 16:52, 3 April 2023

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.

List of attributes that could 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.

WIP - more to be added

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