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.
NvC DmN CH (talk | contribs) m (The initial description was misleading, the shader just modulates pixels. How and what you do with it depends on you. Moved it in a tip. (vertex colors is just a SUPER low res (1 pixel covers half a face)) (lightmapping isnt special, just higher res), etc) |
(Vertex coloring is not super low res, the vertex coloring gradients need to be baked as a texture, and you need a high-res texture for that to look decent at all) |
||
Line 9: | Line 9: | ||
{{tip|This can be effectively used to fake various features that [[Source]] may not support, such as vertex coloring or [[lightmap]]ping on models, by creating a surface above the first one to modulate it.}} | {{tip|This can be effectively used to fake various features that [[Source]] may not support, such as vertex coloring or [[lightmap]]ping on models, by creating a surface above the first one to modulate it.}} | ||
{{ | {{warning|Expensive if multiple are used together.}} | ||
==See also== | ==See also== |
Revision as of 12:23, 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.

