$constantdirectionallight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (clean up, added orphan tag)
Line 1: Line 1:
{{Orphan|date=January 2024}}
{{lang|$constantdirectionallight|title=<code>$constantdirectionallight</code>}}
{{lang|$constantdirectionallight|title=<code>$constantdirectionallight</code>}}
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.
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.
Line 17: Line 19:
   
   
  [[$surfaceprop]] "wood_solid"
  [[$surfaceprop]] "wood_solid"
__NOTOC__


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

Revision as of 00:54, 6 January 2024

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"