Modulate: Difference between revisions
Jump to navigation
Jump to search
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.
(Documented new parameter: $mod2x (boosts the modulation by x2), and added the other parameter that works on this ($nocull)) |
(Removed stub) |
||
Line 1: | Line 1: | ||
'''<code>Modulate</code>''' is a shader that modulates the colors of any pixels behind it. | '''<code>Modulate</code>''' is a shader that modulates the colors of any pixels behind it. | ||
Revision as of 06:55, 25 January 2019
Modulate
is a shader that modulates the colors of any pixels behind it.

Description
Accepts only the following parameters:
$basetexture "material" //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.
