Character (shader)

From Valve Developer Community
Revision as of 20:09, 27 February 2020 by Darnias (talk | contribs)
Jump to navigation Jump to search
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

Character is a material shader available in Counter-Strike: Global Offensive. 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 mask
Blue channel - Metalness mask
Alpha channel - $warpindex mask
$Masks2
Red channel - Shadow saturation mask
Green channel - Angle of Anisotropy
Blue channel - $envmap light scale
Alpha channel - Retroreflectivity
$phongwarptexture
Phong warp texture.
$fresnelrangestexture
[Todo]

Unique Envmap Parameters

Note.pngNote:In addition to all previous VertexLitGeneric parameters.

$envmaplightscale $envmaplightscaleminmax

Phong Parameters

$phongboost $phongalbedoboost $phongtint $phongexponent

Unique Rimlight Parameters

Note.pngNote:In addition to all previous VertexLitGeneric parameters.

$rimlightabledo $rimlighttint $fakerimboost $fakerimtint $fakerimlightscaleminmax $rimhaloboost $rimhalobounds

Ambient Reflection Parameters

$ambientreflectionboost $ambientreflectionbouncecolor $ambientreflectionbouncecenter

Shadow Parameters

$shadowrimboost $shadowsaturation $shadowsaturationbounds $shadowtint $shadowcontrast

Miscellaneous Parameters

$hueshiftamount $metalness $warpindex $anisotropyamount