Character (shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (correction)
mNo edit summary
Line 50: Line 50:
{{MatParam|$shadowsaturation|float|Controls the saturation of shadows.}}
{{MatParam|$shadowsaturation|float|Controls the saturation of shadows.}}
{{MatParam|$shadowsaturationbounds|vector4|{{todo}}.}}
{{MatParam|$shadowsaturationbounds|vector4|{{todo}}.}}
{{MatParam|$shadowtint|vector4|Tints the color of shadows on the model (when in dark area).
{{MatParam|$shadowtint|vector4|Tints the color of shadows on the model (when in dark area).}}
{{note|Uses <code>[R G B ShadowStrength]</code> if shadow strength is 0, then the model won't be tinted in darkness.}}}}
{{note|Uses <code>[R G B ShadowStrength]</code> if shadow strength is 0, then the model won't be tinted in darkness.}}}}
{{MatParam|$shadowcontrast|float|Controls the contrast of shadows.}}
{{MatParam|$shadowcontrast|float|Controls the contrast of shadows.}}

Revision as of 18:46, 15 August 2020

Stub

This article or section is a stub. You can help by expanding it.

Character on left, VertexLitGeneric on right.

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 Albedo 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

Unique Phong Parameters

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

$phongalbedoboost

Unique Rimlight Parameters

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

$rimlightalbedo $rimlighttint $fakerimboost $fakerimtint $fakerimlightscaleminmax $rimhaloboost $rimhalobounds

Ambient Reflection Parameters

$ambientreflectionboost $ambientreflectionbouncecolor $shadowcontrast

Miscellaneous Parameters

$hueshiftamount $metalness $warpindex $anisotropyamount