$blendtintbybasealpha: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
 
{{delete|This has long since been moved to [[$color]].}}
'''$blendtintbybasealpha''' is a [[VMT]] parameter that allows tinting of a mesh's material using the [[$basetexture]]'s [[alpha channel]] as a mask to determine tint '''intensity''' (but ''not'' the tint's [[$color| RGB color]]!) Applying an actual color RGB values is done elsewhere - either in-game or in Hammer with entities using the 'rendercolor' keyvalue. This technique is used in games like ''Left 4 Dead'' to allow for recoloring of the vehicle props, and in ''Team Fortress 2'' for painting hats.
'''$blendtintbybasealpha''' is a [[VMT]] parameter that allows tinting of a mesh's material using the [[$basetexture]]'s [[alpha channel]] as a mask to determine tint '''intensity''' (but ''not'' the tint's [[$color| RGB color]]!) Applying an actual color RGB values is done elsewhere - either in-game or in Hammer with entities using the 'rendercolor' keyvalue. This technique is used in games like ''Left 4 Dead'' to allow for recoloring of the vehicle props, and in ''Team Fortress 2'' for painting hats.



Revision as of 02:50, 8 July 2024

Stub

This article or section is a stub. You can help by expanding it.

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
This has long since been moved to $color.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

$blendtintbybasealpha is a VMT parameter that allows tinting of a mesh's material using the $basetexture's alpha channel as a mask to determine tint intensity (but not the tint's RGB color!) Applying an actual color RGB values is done elsewhere - either in-game or in Hammer with entities using the 'rendercolor' keyvalue. This technique is used in games like Left 4 Dead to allow for recoloring of the vehicle props, and in Team Fortress 2 for painting hats.

Icon-Bug.pngBug:Not compatible with $alphatest or $translucent, this parameter will override both. Use the Modulate shader as a workaround.  [todo tested in ?]
Note.pngNote:Only compatible with VertexLitGeneric.

The tint mask simply controls the intensity of tinting. The more alpha, the more intense tinting is.

$blendtintcoloroverbase, a related parameter, controls the amount of color replacement versus tinting. (replacing the color per pixel entirely, versus adding more color to make the colors closer to the tint RGB color.) A value of '0' will be full tint while a value of '1.00' will replace the albedo in the mask area with the color defined with $color2.