VertexLitGeneric: Difference between revisions
SirYodaJedi (talk | contribs) m (→Adjustment) |
SirYodaJedi (talk | contribs) m (→Cloak: third person) |
||
Line 53: | Line 53: | ||
===Cloak=== | ===Cloak=== | ||
<code>VertexLitGeneric</code> natively supports the Spy cloak effect from {{Game link|Team Fortress 2}}. | <code>VertexLitGeneric</code> natively supports the Spy cloak effect from {{Game link|Team Fortress 2}}. Combine it with a sine wave [[Material Proxies|proxy]] for the full effect. | ||
{{MatParam|$cloakpassenabled|bool|Enables cloaking effects.}} | {{MatParam|$cloakpassenabled|bool|Enables cloaking effects.}} |
Revision as of 19:40, 25 June 2023
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
$seperatedetailuvs
$desaturatewithbasealpha
[[$notint|$notint]]
Transparency
VertexLitGeneric support a few different methods for transparency, each for different purposes
$alpha
$alphatest
$nocull
$translucent
$additive
$distancealpha
Lighting
$bumpmap
$lightwarptexture
$halflambert
$selfillum
$emissiveblendenabled
$lightmap
Reflection
Effect
$compress
$stretch
$flesh
$treeSway
Technical Workarounds
$flashlightnolambert
$lowqualityflashlightshadows
$allowfencerenderstatehack
$disablecsmlookup
Cloak
VertexLitGeneric
natively supports the Spy cloak effect from Team Fortress 2 . 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
- Materials for models
- EyeRefract, the shader for modeled eyes.
- Teeth, the shader for modeled teeth.