Modulate: Difference between revisions
Jump to navigation
Jump to search
NvC DmN CH (talk | contribs) m (fixed a comma) |
NvC DmN CH (talk | contribs) m (fixed the animation now, it should be in motion as a thumbnail as well now) |
||
Line 2: | Line 2: | ||
'''<code>Modulate</code>''' is a 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 (already possible for [[prop_static]] in {{tf2}}), by creating a surface above the first one to modulate it. | '''<code>Modulate</code>''' is a 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 (already possible for [[prop_static]] in {{tf2}}), by creating a surface above the first one to modulate it. | ||
[[File:Modulate img.gif|thumb|512px|GIF Animation showing "Modulate" shader in action. | [[File:Modulate img.gif|thumb|512px|GIF Animation showing "Modulate" shader in action.]] | ||
==Description== | ==Description== |
Revision as of 21:41, 27 December 2018
Modulate
is a 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 (already possible for prop_static in ), by creating a surface above the first one to modulate it.
Description
Accepts only a $basetexture
and this texture will be used to modulate pixels. Multiplies the color behind it with this surface's texture.
Todo: Test performance more. Probably expensive when many layers are in use.