$model (VMT): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(finally worked out what this is for)
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.
The [[material]] parameter '''$model''' marks a material as for use on a [[model]] rather than a [[brush]].
{{note|Not to be confused with the [[QC command]] [[$model (QC)]].}}
 
It is only necessary with shaders that could apply to either, like [[UnlitGeneric]] or [[Refract]].


== VMT syntax example ==
== 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]]
*[[$model (QC)]]


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

Revision as of 12:59, 12 July 2008

The material parameter $model marks a material as for use on a model rather than a brush.

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

VMT syntax example

$model 1

See also