VertexLitGeneric

From Valve Developer Community
Revision as of 00:51, 21 March 2023 by Debiddo (talk | contribs) (Improves VertexLitGeneric's material parameters readability)
Jump to navigation Jump to search
English (en)Français (fr)中文 (zh)Translate (Translate)

VertexLitGeneric is a material shader available in all Source games. It is the shader most commonly used to render models, and supports a variety of effects.

Supported Parameters

Basics

$basetexture $detail $decaltexture

Adjustment

$color2 $basetexturetransform [[$allowdiffusemodulation|$allowdiffusemodulation]] $seperatedetailuvs $desaturatewithbasealpha [[$notint|$notint]]

Transparency

$alpha $alphatest $nocull $translucent $distancealpha|bool|(in all games since Source 2007Vector-like edge filtering.)

Lighting

$bumpmap $lightwarptexture $halflambert $selfillum $emissiveblendenabled

Reflection

$envmap $phong $rimlight

Effect

$compress $stretch $flesh $treeSway

Technical Workarounds

$flashlightnolambert $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

Caveats

Mapbase

Unlit materials in Mapbase should have the shader SDK_VertexLitGeneric.

See also