This article's documentation is for anything that uses the Source engine. Click here for more information.

$model (VMT): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Replacing with "This is a" template)
 
(16 intermediate revisions by 9 users not shown)
Line 1: Line 1:
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.
{{LanguageBar}}
{{note|Not to be confused with the [[QC command]] [[$model (QC)]].}}


== VMT syntax example ==
{{This is a |shader parameter|name=$model}} It marks a material as for use on a [[model]] rather than a [[brush]].
{{ModernConfusion|There is also a {{ent|$model (QC)|alt=$model}} command for [[QC]] files.}}
 
It is only necessary with shaders that could apply to either, like {{ent|UnlitGeneric}} or {{ent|Refract}}.
 
== VMT Syntax Example ==
  $model 1
  $model 1


{{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]].}}
== See also ==
 
*[[Materials for models]]
[[Category:List of Shader Parameters]]
[[Category:Shader parameters|model]]

Latest revision as of 10:01, 10 August 2024

English (en)한국어 (ko)Translate (Translate)

$model is a material shader parameter available in all Source Source games. It marks a material as for use on a model rather than a brush.

Warning.pngRisk of Confusion:There is also a $model command for QC files.

It is only necessary with shaders that could apply to either, like UnlitGeneric or Refract.

VMT Syntax Example

$model 1

See also