$masks2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 230345 by Darnias (talk))
(https://i.imgur.com/3Pu7ZBr.png proof of what it does)
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.
{{Shaderparam|$masks2}} Used in {{csgo}} [[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:''' [[Specular mask]]
:'''Green channel''' - Angle of Anisotropy
* '''Green channel:''' [[$rimlight|Rimlight]] mask
:'''Blue channel''' - [[$envmap]] light scale
* '''Blue channel:''' [[Base Tint|Base Tint mask]]
:'''Alpha channel''' - Retroreflectivity
* '''Alpha channel:''' [[Specular]] exponent


[[Category:List of Shader Parameters|M]]
[[Category:List of Shader Parameters|M]]

Revision as of 18:20, 15 August 2020

Template:Shaderparam Used in Counter-Strike: Global Offensive 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 of Anisotropy
Blue channel - $envmap light scale
Alpha channel - Retroreflectivity