Difference between revisions of "$vertexalpha"

From Valve Developer Community
Jump to: navigation, search
m
Line 1: Line 1:
 
'''<code>$vertexalpha</code>''' and '''<code>$vertexcolor</code>''' are two [[VMT]] commands that make the surface derive its [[alpha]] and [[RGB|color]] values from per-[[vertex]] data provided by the engine.
 
'''<code>$vertexalpha</code>''' and '''<code>$vertexcolor</code>''' are two [[VMT]] commands that make the surface derive its [[alpha]] and [[RGB|color]] values from per-[[vertex]] data provided by the engine.
  
Only [[particle]]s 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.
+
Only [[particle]]s and [[Decals]] 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.
  
 
{{todo|Are these commands shader-agnostic?}}
 
{{todo|Are these commands shader-agnostic?}}
  
 
[[Category:List of Shader Parameters|V]]
 
[[Category:List of Shader Parameters|V]]

Revision as of 15:20, 3 April 2011

$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 and Decals 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?