VertexLitGeneric

From Valve Developer Community
Revision as of 15:27, 30 November 2019 by Deprecated (talk | contribs) (Rewrote $flashlightnolambert's description, added that $flashlightnolambert and $seperatedetailuvs were introduced in EP2, reorganized misc parameters)
Jump to navigation Jump to search

Shader-ball.png VertexLitGeneric It is the shader most commonly used to render models, and supports a variety of effects.

Supported Parameters

$bumpmap
Bumpmapping.
$color2
Color tinting.
$detail
Detail texturing.
$envmap
Specular reflections.
$emissiveblend Template:EP2 add
Advanced flowing self-illumination, used on the Vortigaunts in Half-Life 2: Episode Two Half-Life 2: Episode Two .
$flesh Template:EP2 add
The flesh effect used for Alyx in Half-Life 2: Episode Two.
$halflambert
Half-lambertian shading.
$lightwarptexture (in all games since Half-Life 2: Episode One)
Per-texel color modification via a warp texture.
$phong (in all games since Half-Life 2: Episode One)
Diffuse reflections.
$rimlight Template:EP2 add
Constant rimlight based on phong and the ambient lighting.
$selfillum
Self-illumination.
$translucent
$alpha
Expensive and cheap transparency.
$compress Template:EP2 add
$stretch Template:EP2 add
Wrinklemaps for character faces.
$treeSway Template:L4D add
Vertex manipulation to give the effect of trees swaying in the wind.

Misc Parameters

$flashlightnolambert $seperatedetailuvs $desaturatewithbasealpha $allowfencerenderstatehack $disablecsmlookup

Cloak

VertexLitGeneric natively supports the Spy cloak effect from Team Fortress 2 Team Fortress 2 . You will want to combine it with a sine wave proxy for the full effect.

$cloakpassenabled $cloakfactor $cloakcolortint $refractamount

See also