Modulate

From Valve Developer Community
Revision as of 10:33, 5 December 2018 by Ficool2 (talk | contribs) (Another undocumented shader, thanks to Stiffy360 and Sreap for documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Modulate is an shader that modulates the colors of any pixels behind it. This can be effectively used to various features that Source may not support, such as vertex coloring or lightmapping on models (except for prop_static in Team Fortress 2).

Accepts only a $basetexture, and this texture will be used to modulate pixels.

For a better explanation, see the post here (halfway through the thread).

Todo: Re-write this page with a better description and explanation of usage