Character (shader): Difference between revisions
Jump to navigation
Jump to search
Note:In addition to all previous VertexLitGeneric parameters.
Note:In addition to all previous VertexLitGeneric parameters.
Note:In addition to all previous VertexLitGeneric parameters.
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
{{MatParam|$envmaplightscale|float|How much the surface's lightmap tints the specular reflection. A value between 0 (off) and 1 (no reflection with completely black lightmap) determines how much the reflection is tinted; values above 1 are permitted but seem to actually start inverting the effect.}} | {{MatParam|$envmaplightscale|float|How much the surface's lightmap tints the specular reflection. A value between 0 (off) and 1 (no reflection with completely black lightmap) determines how much the reflection is tinted; values above 1 are permitted but seem to actually start inverting the effect.}} | ||
{{MatParam|$envmaplightscaleminmax|vector2|Thresholds for the lightmap reflection tinting effect. Setting the minimum value higher increases the minimum light amount at which the reflection gets nerfed to nothing.}} | {{MatParam|$envmaplightscaleminmax|vector2|Thresholds for the lightmap reflection tinting effect. Setting the minimum value higher increases the minimum light amount at which the reflection gets nerfed to nothing.}} | ||
===Phong Parameters=== | ===Unique Phong Parameters=== | ||
{{ | {{note|In addition to all previous '''VertexLitGeneric''' parameters.}} | ||
{{MatParam|$phongalbedoboost|float|Phong albedo overbrightening factor.}} | {{MatParam|$phongalbedoboost|float|Phong albedo overbrightening factor.}} | ||
===Unique Rimlight Parameters=== | ===Unique Rimlight Parameters=== | ||
{{note|In addition to all previous '''VertexLitGeneric''' parameters.}} | {{note|In addition to all previous '''VertexLitGeneric''' parameters.}} |
Revision as of 11:18, 28 February 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 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
$fakerimlightscaleminmax
$rimhaloboost
$rimhalobounds
Ambient Reflection Parameters
$ambientreflectionboost
$ambientreflectionbouncecolor
$ambientreflectionbouncecenter
Shadow Parameters
$shadowrimboost
$shadowsaturation
$shadowsaturationbounds
$shadowtint
$shadowcontrast