$brightness

From Valve Developer Community
Revision as of 03:10, 4 December 2023 by Cvoxalury (talk | contribs) (Wrote what the obsolete/non-functional $brightness parameter was supposed to do.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

$brightness is a deprecated shader parameter referenced only in the pre-release HDR version of the UnlitGeneric shader.

It would contribute additively to the brightness of the alpha channel of the main texture. However, it is effectively commented out and unused.

References to it can still be found in a couple materials in the final game; it does nothing.

"UnlitGeneric"
{
	// Original shader: AddTexture
	"$basetexture" "effects/spark"
	"$brightness" "effects/spark_brightness"
	"$additive" 1
	"$vertexcolor" 1
}