SFM/Materials override: Difference between revisions

From Valve Developer Community
< SFM
Jump to navigation Jump to search
(Revamping this page, currently work in progress. There is a LOT of information missing here that needs to be added.)
(Added $detailblendfactor to the list of attributes that can be overridden)
Line 2: Line 2:
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.
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:
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:
{{def|code=1|[[$basetexture|$basetexture]]|type=[[String|String]]}} VTF path for texture replacement
{{def|code=1|[[$basetexture|$basetexture]]|type=[[String|String]]}} VTF path for texture replacement
{{def|code=1|[[$phong|$phong]]|type=[[Float|Float]]}} brightness of phong effect
{{def|code=1|[[$phong|$phong]]|type=[[Float|Float]]}} brightness of phong effect
{{def|code=1|[[$color|$color]]|type=[[RGB|RGB]] [[Material_vector|Material Vector]]}} 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
{{def|code=1|[[$detail#Parameters_and_Effects|$detailblendfactor]]|type=[[Normal|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:
List of attributes that cannot be overridden (or added) in SFM:
WIP - to be added
'''''WIP - to be added'''''

Revision as of 06:07, 1 August 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.

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