Character (shader): Difference between revisions
Jump to navigation
Jump to search
Tip:It might be a good idea to look at Valve vmts of new Player Models inside the vpk files, to get better understanding how to structure your Character shader vmt.
Note:In addition to all previous VertexLitGeneric parameters.
Note:In addition to all previous VertexLitGeneric parameters.
Note:In addition to all previous VertexLitGeneric parameters.
Note: Ambient Reflection is similiar to rimlighting.
Note:Doesn't do anything if $masks1 is used.
MineClever (talk | contribs) |
MineClever (talk | contribs) |
||
Line 60: | Line 60: | ||
{{MatParam|$metalness|float| Metalness is just a negative multiply on the albedo. | {{MatParam|$metalness|float| Metalness is just a negative multiply on the albedo. | ||
{{note|Doesn't do anything if [[$masks1]] is used.}}}} | {{note|Doesn't do anything if [[$masks1]] is used.}}}} | ||
{{MatParam|$warpindex|float| | {{MatParam|$warpindex|float|Tell shader a float value as V coord of specular or fresnel warp texuture .}} | ||
{{note|Doesn't do anything if [[$masks1]] is used.}}}} | {{note|Doesn't do anything if [[$masks1]] is used.}}}} | ||
{{MatParam|$anisotropyamount|float|Controls how much anisotropic lighting tints the model.}} | {{MatParam|$anisotropyamount|float|Controls how much anisotropic lighting tints the model.}} |
Revision as of 22:45, 29 September 2020
Character is a material shader available in . Shares most generic parameters of VertexLitGeneric. Takes advantage of mask textures to tune stuff like rimlighting, phong shading and other.

Supported Parameters
Textures & Masks
- $basetexture
- Diffuse mask.
- $bumpmap
- Normal map.
- $envmap
- Specular reflection mask.
- $masks1
- Red channel - $rimlight mask
- Green channel - Phong Albedo mask
- Blue channel - $metalness mask
- Alpha channel - $warpindex mask
- $masks2
- Red channel - Shadow saturation mask
- Green channel - Angle and Amount of Anisotropy
- Blue channel - $envmap light scale
- Alpha channel - Retroreflectivity
- $phongwarptexture
- Phong warp texture.
- $fresnelrangestexture
- BlinnPhong&Rimlight fresnel mapping texture
Unique Envmap Parameters

$envmaplightscale
$envmaplightscaleminmax
Unique Phong Parameters

Unique Rimlight Parameters

$rimlightalbedo
$rimlighttint
$fakerimboost
$fakerimtint
$rimhaloboost
$rimhalobounds
Ambient Reflection Parameters

$ambientreflectionboost
$ambientreflectionbouncecolor
$ambientreflectionbouncecenter
Shadow Parameters
$shadowrimboost
$shadowsaturation
$shadowsaturationbounds
$shadowtint
$shadowcontrast
Miscellaneous Parameters
$hueshiftamount
$metalness
$warpindex

}}