Modulate: Difference between revisions
Jump to navigation
Jump to search

Note:Does not accept any translucency parameters, including $alpha, $alphatest, $additive and $translucent.
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
==Description== | ==Description== | ||
[[File:Mod2x bloom.jpg|thumb|300px| | [[File:Mod2x bloom.jpg|thumb|300px|Comparison of bloom boosting with $mod2x 1 + white basetexture and without]] | ||
[[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: |
Revision as of 11:09, 6 April 2025


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:
