$brightness: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Derp)
(Wrote what the obsolete/non-functional $brightness parameter was supposed to do.)
 
Line 1: Line 1:
I dont know what this is but i saw it in the VMT for sparks
{{obsolete|shader=1}}
'''<code>$brightness</code>''' is a deprecated shader parameter referenced only in the pre-release [[HDR]] version of the {{ent|UnlitGeneric}} shader.


{{modernConfirm|What is it?}}
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.


<syntaxhighlight lang=php highlight=5>
<syntaxhighlight lang=php highlight=5>

Latest revision as of 02:10, 4 December 2023

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
}