$brightness: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
NvC DmN CH (talk | contribs) 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: | ||
{{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
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
}

