$vertexcolor and $vertexalpha: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) mNo edit summary |
TomEdwards (talk | contribs) No edit summary |
||
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 08: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.
Todo: Are these commands shader-agnostic?