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

$constantdirectionallight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
($constantdirectionallight)
 
No edit summary
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
If set, <code>constdirectionallightdot</code> is used to calculate light intensity rather than the normal directional dot product. Only valid if <code>STUDIOHDR_FLAGS_STATIC_PROP</code> (<code>$staticprop</code>) is also set.
{{LanguageBar|title = <code>$constantdirectionallight</code>}}


{{tip|This command is useful for foliage models.}}
{{Orphan|date=January 2024}}


== Syntax ==
{{This is a|name=$constantdirectionallight|QC command}} This parameter is used to calculate light intensity rather than the normal directional dot product{{clarify}}. Only valid if <code>STUDIOHDR_FLAGS_STATIC_PROP</code> (<code>[[$staticprop]]</code>) is also set.


{{tip|This command is useful for foliage [[Model|models]].}}
==Syntax==
  $constantdirectionallight <scale>
  $constantdirectionallight <scale>


== Example ==
==Example==
[[$modelname]] "props_foliage\hedge_256_128.mdl"
[[$staticprop]]
[[$body]] body "hedge_256_128.smd"
'''$constantdirectionallight 0.15'''
[[$surfaceprop]] "wood_solid"


$modelname props_foliage\hedge_256_128high.mdl
__NOTOC__
$body "Body" "hedge_256_128high_reference.smd"
 
$staticprop
[[Category:Modeling]]
'''$constantdirectionallight 0.15'''
[[Category:Source]]
$surfaceprop "wood_solid"
[[Category:QC Commands|constantdirectionallight]]__NOTOC__

Latest revision as of 21:26, 16 July 2025

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"