$constantdirectionallight: Difference between revisions
Jump to navigation
Jump to search

Tip:This command is useful for foliage models.
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
==Example== | ==Example== | ||
[[$modelname]] "props_foliage\hedge_256_128.mdl" | [[$modelname]] "props_foliage\hedge_256_128.mdl" | ||
[[$staticprop]] | [[$staticprop]] |
Revision as of 23:01, 3 June 2021


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.

Syntax
$constantdirectionallight <scale>
Example
$modelname "props_foliage\hedge_256_128.mdl" $staticprop $body body "hedge_256_128.smd" $constantdirectionallight 0.15 $surfaceprop "wood_solid"