Modulate: Difference between revisions
Jump to navigation
Jump to search
Tip:This can be effectively used to fake 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.
Warning:Expensive if multiple are used together.
No edit summary |
NvC DmN CH (talk | contribs) m (huh, interesting) |
||
Line 3: | Line 3: | ||
[[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== | ||
Accepts only a <code>$basetexture</code> and this texture will be used to modulate pixels. Multiplies the color behind it with this surface's texture. | Accepts only a <code>$basetexture</code> and this texture will be used to modulate pixels. Multiplies the color behind it with this surface's texture. |
Revision as of 20:04, 28 December 2018
Modulate
is a shader that modulates the colors of any pixels behind 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.
Also accepts $no_draw.

