Modulate
Jump to navigation
Jump to search
![English (en) English (en)](/w/images/3/37/Flag-en.png)
Tip:This shader can be effectively used to fake various features that Source may not support, such as vertex coloring or lightmapping on models, by creating a surface above the first one to modulate it.
Note:Does not accept any translucency parameters, including $alpha, $alphatest, $additive and $translucent.
![English (en) English (en)](/w/images/3/37/Flag-en.png)
![Translate (Translate) Translate (Translate)](/w/images/a/a8/Flag-Translate.png)
Modulate
is a Pixel shader available in all Source games. It modulates the colors of any pixels behind it.
![Tip.png](/w/images/thumb/4/45/Tip.png/9px-Tip.png)
Description
Accepts only the following parameters:
$basetexture "texture" //Multiplies the color behind it with this surface's texture. $mod2x "boolean" //Doubles the modulation, making it appear brighter. 1 enables this, 0 disables. Disabled by default. $nocull "boolean" //Draws triangles from both sides, not just one. 1 enables this, 0 disables. Disabled by default.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)