Modulate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Another undocumented shader, thanks to Stiffy360 and Sreap for documentation)
 
No edit summary
Line 3: Line 3:
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.


For a better explanation, see the [https://forum.facepunch.com/f/mapping/qypk/The-Official-Facepunch-Mapping-WiP-Thread-v17-Carve-Edition/94/ post here] (halfway through the thread).
For a better explanation and usage tutorial, see the [https://forum.facepunch.com/f/mapping/qypk/The-Official-Facepunch-Mapping-WiP-Thread-v17-Carve-Edition/94/ post here] (halfway through the thread).


{{todo|Re-write this page with a better description and explanation of usage}}
{{todo|Re-write this page with a better description and explanation of usage}}


[[Category:Shaders]]
[[Category:Shaders]]

Revision as of 10:38, 5 December 2018

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 and usage tutorial, see the post here (halfway through the thread).

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