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.
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
SirYodaJedi (talk | contribs) |
||
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: | ||
{{ | |||
$basetexture | {{matParam|$basetexture|texture|Multiplies the color behind it with this surface's texture.}} | ||
$mod2x | {{matParam|$mod2x|boolean|Use [[DecalModulate]] blending instead of multiplication.}} | ||
$nocull | {{matParam|$nocull|boolean|Apply effect from through both sides of the polygon, instead of only through the front.}} | ||
{{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 15:56, 3 March 2025


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

Description
Accepts only the following parameters:
