$model (VMT): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(split from $model)
 
No edit summary
Line 1: Line 1:
[[$model]] flags a material for use on models, rather than a [[brush]]. Its exact effects are unclear. <!-- Is it? Doesn't VertexLitGeneric tell Source this already? |It is necessary for all materials applied to models.-->
The [[VMT command]] '''$model''' flags a material for use on models, rather than a [[brush]]. It is necessary for any material used as a model skin.


{{tip|Remember that the basic shader type for models is [[VertexLitGeneric]], not [[LightmappedGeneric]].}}
== VMT syntax example ==
 
{{warning|Using multiple materials on the same model reduces performance. If you can, combine everything into one.}}
 
{{note|Models materials should be stored in <code>materials/models/</code>. The QC command [[$cdmaterials]] can be used to specify further subfolders.}}
 
== Example ==
  $model 1
  $model 1


== See also ==
{{tip|Remember that the basic shader type for all models is [[VertexLitGeneric]] and a model's [[VMT]] and [[VTF]] files should be stored in <code>materials/models/</code>. See also [[Materials for models]].}}
*[[Materials for models]]


[[Category:List of Shader Parameters]]
[[Category:List of Shader Parameters]]

Revision as of 11:40, 31 March 2008

The VMT command $model flags a material for use on models, rather than a brush. It is necessary for any material used as a model skin.

VMT syntax example

$model 1
Tip.pngTip:Remember that the basic shader type for all models is VertexLitGeneric and a model's VMT and VTF files should be stored in materials/models/. See also Materials for models.