VertexLitGeneric: Difference between revisions
SirYodaJedi (talk | contribs) m (→Mapbase) |
|||
Line 49: | Line 49: | ||
{{MatParam|$allowfencerenderstatehack|bool|Fence render hack for cascade shadow maps, allows shadow maps to work properly with fences.|since={{csgo}}}} | {{MatParam|$allowfencerenderstatehack|bool|Fence render hack for cascade shadow maps, allows shadow maps to work properly with fences.|since={{csgo}}}} | ||
{{MatParam|$disablecsmlookup|bool|Disable cascade shadow map lookup/filtering, useful on dense foilage.|since={{csgo}}}} | {{MatParam|$disablecsmlookup|bool|Disable cascade shadow map lookup/filtering, useful on dense foilage.|since={{csgo}}}} | ||
{{MatParam|$noshadowpass|bool|Allows turning off the shadow pass of this material.|only={{lw}}}} | |||
{{MatParam|$nodeferredlight|bool|No deferred light input.|only={{lw}}}} | |||
{{MatParam|$modelglobalnormal|bool|Use global light direction as normal for all model vertices.|only={{lw}}}} | |||
===Cloak=== | ===Cloak=== |
Revision as of 22:46, 7 April 2024
VertexLitGeneric
is a s1 available in all Source games. It is the shader most commonly used to render models, and supports a variety of effects. Do not use this on world geometry, else you may encounter lighting bugs.
Supported Parameters
Basics
$basetexture
$detail
$decaltexture
Adjustment
$color2
$basetexturetransform
$allowdiffusemodulation
$seperatedetailuvs
$desaturatewithbasealpha
$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
$noshadowpass
$nodeferredlight
$modelglobalnormal
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
VertexLitGeneric 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.