$vertexalpha

From Valve Developer Community
Revision as of 15:32, 27 March 2011 by TomEdwards (talk | contribs) (Created page with ''''<code>$vertexalpha</code>''' and '''<code>$vertexcolor</code>''' are two VMT commands that make the surface derive its alpha and color values from per-[[vertex…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$vertexalpha and $vertexcolor are two VMT commands that make the surface derive its alpha and color values from per-vertex data provided by the engine.

Only particles are known to modify their vertex data, but it should be possible to implement your own scenarios too. Vertex alpha and color cannot be compiled into a model however.

To do: Are these commands shader-agnostic?