This article's documentation is for anything that uses the Source engine. Click here for more information.

$constantdirectionallight

From Valve Developer Community
Revision as of 21:26, 16 July 2025 by Equalizer5118 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Translate (Translate)

$constantdirectionallight is a QC command available in all Source Source games. This parameter is used to calculate light intensity rather than the normal directional dot product[Clarify]. Only valid if STUDIOHDR_FLAGS_STATIC_PROP ($staticprop) is also set.

Tip.pngTip:This command is useful for foliage models.

Syntax

$constantdirectionallight <scale>

Example

$modelname		"props_foliage\hedge_256_128.mdl"

$staticprop

$body		body	"hedge_256_128.smd"

$constantdirectionallight	0.15

$surfaceprop		"wood_solid"