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.
mNo edit summary |
m (→Description) |
||
Line 8: | Line 8: | ||
[[File:Mod2x_comparison.png|thumb|300px|Picture showing the difference between $mod2x 0 and 1.]] | [[File:Mod2x_comparison.png|thumb|300px|Picture showing the difference between $mod2x 0 and 1.]] | ||
Accepts only the following parameters: | Accepts only the following parameters: | ||
< | {{pre|<nowiki> | ||
$basetexture "texture" //Multiplies the color behind it with this surface's texture. | $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. | $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. | $nocull "boolean" //Draws triangles from both sides, not just one. 1 enables this, 0 disables. Disabled by default. | ||
</ | </nowiki>}} | ||
{{note|Does not accept any translucency parameters, including [[$alpha]], [[$alphatest]], [[$additive]] and [[$translucent]].}} | {{note|Does not accept any translucency parameters, including [[$alpha]], [[$alphatest]], [[$additive]] and [[$translucent]].}} |
Revision as of 13:15, 1 February 2024


Modulate
is a s0 available in all Source games. It modulates the colors of any pixels behind it.

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.
