$model (VMT): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Changed to use Shaderparam template)
Line 3: Line 3:
}}
}}


The [[material]] parameter '''$model''' marks a material as for use on a [[model]] rather than a [[brush]].
{{Shaderparam|$model}} It 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]].
It is only necessary with shaders that could apply to either, like [[UnlitGeneric]] or [[Refract]].

Revision as of 11:45, 8 June 2019

Template:Otherlang2

Template:Shaderparam It 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