$constantdirectionallight

From Valve Developer Community
Revision as of 19:18, 28 April 2008 by JeffLane (talk | contribs) ($constantdirectionallight)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If set, constdirectionallightdot is used to calculate light intensity rather than the normal directional dot product. 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_128high.mdl
$body "Body" "hedge_256_128high_reference.smd" 
$staticprop
$constantdirectionallight 0.15
$surfaceprop "wood_solid"