Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

$alphatestmask #2357

Open frostedcorn opened 2 months ago

frostedcorn commented 2 months ago

Alphatest and materials using commands such like blendtintbybasealpha are incompatible due to both using the alpha channel of the albedo to control tinting. It would be nice if we could use both, either by some sort of alphatestmask command or blendtintbymask that would path to a different .vtf while letting colorability and transparency on models work together.

VpSnipes commented 2 months ago

This is the same thing I had requested earlier on, rather than changing the alphamask, we can use the Blue channel of the Exponent mask instead (since it isn't used). This way we can keep our alpha in our diffuse and make more use of the Exponent mask.