Modulate
Jump to navigation
Jump to search

Note:Does not accept any translucency parameters, including $alpha, $alphatest, $additive and $translucent.


Modulate
is a Pixel shader available in all Source games. It modulates the colors of any pixels behind it.
A practical application of this shader is to create bloom-boosting textures, to create fake eye adaptation inside interiors. Other uses include faking 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.
Description
Accepts only the following parameters:
Multiplies the color behind it with this surface's texture.
Use DecalModulate blending instead of multiplication.
Code:Standard multiplication is equivalent to a BlendFunc of [DestinationColor,Zero], and Mod2x is equivalent to a BlendFunc of [DestinationColor, SourceColor]
