$constantdirectionallight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WisdomBot moved page $constantdirectionallight to $constantdirectionallight/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot under supervision.)
m (Multipage removal)
Line 1: Line 1:
{{langsp|title=<code>$constantdirectionallight</code>}}
{{LanguageBar|title = <code>$constantdirectionallight</code>}}
 
{{Orphan|date=January 2024}}
{{Orphan|date=January 2024}}


Line 21: Line 22:


__NOTOC__
__NOTOC__
[[Category:Modeling]]
[[Category:QC_Commands|constantdirectionallight]]
[[Category:Source]]

Revision as of 03:10, 12 July 2024

English (en)Translate (Translate)

If set, constdirectionallightdot 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"