$masks2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Replacing with "This is a" template)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''$masks2''' is a [[material]] [[shader]] parameter available in {{csgo}} [[Counter-Strike: Global Offensive]] based Source version, available for the "character" shader.
{{This is a|shader parameter|name=$masks2|game=Counter-Strike: Global Offensive}} Used in [[Character (shader)]]. It specifies various lighting effects in each of the 4 layers.


There are two masks the #1 and #2 mask available in the [[Texture Mask|MasksTexture]].
The purpose of each layer is:


The '''$masks2''' texture contains the following:
:'''Red channel''' - Shadow saturation mask
* '''Red channel:''' Spec mask
:'''Green channel''' - Angle and Amount of Anisotropy
* '''Green channel:''' [[Rimlight]] mask
:'''Blue channel''' - [[$envmap]] light scale
* '''Blue channel:''' [[Base Tint|Base Tint mask]]
:'''Alpha channel''' - Retroreflectivity
* '''Alpha channel:''' Spec exponent
 
[[Category:Shader parameters|m]]

Latest revision as of 10:17, 10 August 2024

$masks2 is a material shader parameter available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. Used in Character (shader). It specifies various lighting effects in each of the 4 layers.

The purpose of each layer is:

Red channel - Shadow saturation mask
Green channel - Angle and Amount of Anisotropy
Blue channel - $envmap light scale
Alpha channel - Retroreflectivity