Modulate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''<code>Modulate</code>''' 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 [[lightmap]]ping on models (except for [[prop_static]] in {{tf2}}).  
'''<code>Modulate</code>''' is an shader that modulates the colors of any pixels behind it. This can be effectively used to fake various features that [[Source]] may not support, such as vertex coloring or [[lightmap]]ping on models (except for [[prop_static]] in {{tf2}}).  


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

Revision as of 10:47, 5 December 2018

Modulate is an shader that modulates the colors of any pixels behind it. This can be effectively used to fake 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 and usage tutorial, see the post here (halfway through the thread).

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