VertexLitGeneric: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added $lowqualityflashlightshadows from Portal 2)
(Added $decaltexture to list of supported parameters)
Line 7: Line 7:
;<code>[[$color#Models|$color2]]</code>
;<code>[[$color#Models|$color2]]</code>
: Color tinting.
: Color tinting.
; {{ent|$decaltexture}} {{only|{{csgo}}}}
: Use a 2nd UV channel for high-resolution decal support.
;{{ent|$detail}}
;{{ent|$detail}}
: Detail texturing.
: Detail texturing.

Revision as of 20:51, 28 August 2020

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

Supported Parameters

$bumpmap
Normal mapping.
$color2
Color tinting.
$decaltexture (only in Counter-Strike: Global Offensive)
Use a 2nd UV channel for high-resolution decal support.
$detail
Detail texturing.
$envmap
Specular reflections.
$emissiveblend (in all games since Source 2007)
Advanced flowing self-illumination, used on the Vortigaunts in Half-Life 2: Episode Two Half-Life 2: Episode Two .
$flesh (in all games since Source 2007)
The flesh effect used for Alyx in Half-Life 2: Episode Two.
$halflambert
Half-lambertian shading.
$lightwarptexture (in all games since Source 2006)
Per-texel color modification via a warp texture.
$phong (in all games since Source 2006)
Diffuse reflections.
$rimlight (in all games since Source 2007)
Constant rimlight based on phong and the ambient lighting.
$selfillum
Self-illumination.
$translucent
$alpha
Expensive and cheap transparency.
$compress (in all games since Source 2007)
$stretch (in all games since Source 2007)
Wrinklemaps for character faces.
$treeSway (in all games since Left 4 Dead)
Vertex manipulation to give the effect of trees swaying in the wind.

Misc Parameters

$flashlightnolambert $seperatedetailuvs $desaturatewithbasealpha $lowqualityflashlightshadows $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