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.
m (Clarity edit) |
1416006136 (talk | contribs) (using {{This is a}}) |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
[[File:character_vs_vertexlit.jpg|thumb|Character on left, VertexLitGeneric on right.]] | [[File:character_vs_vertexlit.jpg|thumb|Character on left, VertexLitGeneric on right.]] | ||
{{This is a|vertex shader|name=Character|game=Counter-Strike: Global Offensive}} Shares most generic parameters of [[VertexLitGeneric]]. It takes advantage of mask textures to tune '''rimlighting''', '''phong shading''' and other parameters. | |||
{{Tip|It might be a good idea to look at Valve [[vmt]]s of new Player Models inside the [[vpk]] files, to get better understanding how to structure your Character shader vmt.}} | {{Tip|It might be a good idea to look at Valve [[vmt]]s of new Player Models inside the [[vpk]] files, to get better understanding how to structure your Character shader vmt.}} |
Revision as of 10:26, 22 July 2024
Character
is a Vertex shader available in Counter-Strike: Global Offensive. Shares most generic parameters of VertexLitGeneric. It takes advantage of mask textures to tune rimlighting, phong shading and other parameters.

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 of Anisotropy,as if the mask value > 0.the mask value * 3.14159 to get angle .
- Blue channel - $envmap light scale
- Alpha channel - Retroreflectivity
- $phongwarptexture
- Phong warp texture.
- $fresnelrangestexture
- BlinnPhong&AmbientReflection 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