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.
		
	
 (Cleared up few parameters and removed few todos)  | 
				 (Just the tip)  | 
				||
| Line 3: | Line 3: | ||
[[File:character_vs_vertexlit.jpg|thumb|Character on left, VertexLitGeneric on right.]]  | [[File:character_vs_vertexlit.jpg|thumb|Character on left, VertexLitGeneric on right.]]  | ||
'''Character''' is a [[material]] [[shader]] available in {{csgo}}. Shares most generic parameters of [[VertexLitGeneric]]. Takes advantage of mask textures to tune stuff like '''rimlighting''', '''phong shading''' and other.  | '''Character''' is a [[material]] [[shader]] available in {{csgo}}. Shares most generic parameters of [[VertexLitGeneric]]. Takes advantage of mask textures to tune stuff like '''rimlighting''', '''phong shading''' and other.  | ||
{{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.}}  | |||
== Supported Parameters ==  | == Supported Parameters ==  | ||
Revision as of 18:16, 15 August 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 of Anisotropy
 - Blue channel - $envmap light scale
 - Alpha channel - Retroreflectivity
 - $phongwarptexture
 - Phong warp texture.
 - $fresnelrangestexture
 - [Todo]
 
Unique Envmap Parameters
$envmaplightscale
$envmaplightscaleminmax
Unique Phong Parameters
Unique Rimlight Parameters
$rimlightalbedo
$rimlighttint
$fakerimboost
$fakerimtint
$rimhaloboost
$rimhalobounds
Ambient Reflection Parameters
$ambientreflectionboost
$ambientreflectionbouncecolor
$shadowcontrast