$masks1: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 230344 by Darnias (talk))
m (Replacing with "This is a" template)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''$masks1''' 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=$masks1|game=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''' - [[$rimlight]] mask
There are two masks the #1 and #2 mask available in the [[Texture Mask|MasksTexture]].
:'''Green channel''' - [[Phong]] Albedo mask
 
:'''Blue channel''' - [[$metalness]] mask
The '''$masks1''' texture contains the following:
:'''Alpha channel''' - [[$warpindex]] mask
* '''Red channel:''' [[Detail Mask]]
[[Category:Shader parameters|m]]
* '''Green channel:''' [[Diffuse Mask]]
* '''Blue channel:''' [[Metalness Mask]]
* '''Alpha channel:''' [[Self-illumination Mask]]
 
[[Category:List of Shader Parameters|M]]

Latest revision as of 10:16, 10 August 2024

$masks1 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 - $rimlight mask
Green channel - Phong Albedo mask
Blue channel - $metalness mask
Alpha channel - $warpindex mask