$masks1: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 230344 by Darnias (talk))
(https://i.imgur.com/74ugQl6.png proof of what it does)
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.
{{Shaderparam|$masks1}} Used in {{csgo}} [[Character (shader)]]. It specifies various lighting effects in each of the 4 layers.


The purpose of each layer is:


There are two masks the #1 and #2 mask available in the [[Texture Mask|MasksTexture]].
:'''Red channel''' - [[$rimlight]] mask
 
:'''Green channel''' - [[Phong]] Albedo mask
The '''$masks1''' texture contains the following:
:'''Blue channel''' - [[$metalness]] mask
* '''Red channel:''' [[Detail Mask]]
:'''Alpha channel''' - [[$warpindex]] mask
* '''Green channel:''' [[Diffuse Mask]]
* '''Blue channel:''' [[Metalness Mask]]
* '''Alpha channel:''' [[Self-illumination Mask]]


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

Revision as of 18:18, 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 - $rimlight mask
Green channel - Phong Albedo mask
Blue channel - $metalness mask
Alpha channel - $warpindex mask