$brightness: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (minor edit)
(Wrote what the obsolete/non-functional $brightness parameter was supposed to do.)
 
(4 intermediate revisions by 2 users not shown)
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.
 
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>
Line 11: Line 16:
}
}
</syntaxhighlight>
</syntaxhighlight>
<gallery>
Spark.png|spark.vtf
Spark brightness.png|spark_brightness.vtf
</gallery>
[[Category:Shader parameters|B]]

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
}