$distancealpha

From Valve Developer Community
Revision as of 11:00, 13 July 2008 by TomEdwards (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Another new OB feature: outlining. See this PDF for a high-level explanation of what all this stuff does.

	// give it a slight outer soft edge
	$softedges 1
	$edgesoftnessstart 0.5
	$edgesoftnessend 0.4
	$scaleedgesoftnessbasedonscreenres 1

	// give it a white outline
	$outline 1
	$outlinecolor "[0.7 0.7 0.5]"
	$outlinestart0 0.41
	$outlinestart1 0.49
	$outlineend0 0.57
	$outlineend1 0.65
	$scaleoutlinesoftnessbasedonscreenres 1

	// and a drop shadow
	$glow 1
	$glowcolor "[0 0 0]"
	$glowalpha 0.45
	$glowstart 0.1
	$glowend 0.5
	$glowx -0.001
	$glowy -0.001