$constantdirectionallight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 20: Line 20:
[[Category:Modeling]]
[[Category:Modeling]]
[[Category:QC_Commands]]
[[Category:QC_Commands]]
[[Category:Glossary]]__NOTOC__
[[Category:Source]]__NOTOC__

Revision as of 01:43, 9 April 2023

English (en)Translate (Translate)

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_128.mdl"

$staticprop

$body		body	"hedge_256_128.smd"

$constantdirectionallight	0.15

$surfaceprop		"wood_solid"