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 colouring or lightmapping on models, by creating a surface above the first one to modulate it.
Warning:Expensive if multiple are used together.
(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) |
NvC DmN CH (talk | contribs) m (ofcourse it has to be baked. Also, its called vertex coloring for a reason. Each vertex is assigned 1 pixel (super low res). The gpu takes care of interpolating the pixel's color over the triangle. We should have done this in "Discussion".) |
||
Line 7: | Line 7: | ||
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. | ||
{{tip|This can be effectively used to fake various features that [[Source]] may not support, such as vertex | {{tip|This can be effectively used to fake various features that [[Source]] may not support, such as vertex colouring or [[lightmap]]ping on models, by creating a surface above the first one to modulate it.}} | ||
{{warning|Expensive if multiple are used together.}} | {{warning|Expensive if multiple are used together.}} |
Revision as of 13:46, 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.

