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

Tip:This command is useful for foliage models.
($constantdirectionallight) |
mNo edit summary |
||
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. | {{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. | |||
{{tip|This command is useful for foliage models.}} | {{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" | |||
[[Category:Modeling]] | |||
[[Category:QC_Commands]] | |||
[[Category:Glossary]]__NOTOC__ | |||
[[Category: |
Revision as of 22:59, 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"