$illumposition

From Valve Developer Community
Revision as of 08:38, 21 January 2024 by Thunder4ik (talk | contribs) (clean up, added deadend tag)
Jump to navigation Jump to search
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

Sets the illumination position of the model relative to the origin. By default the $illumposition is the center of the model geometry.

When illuminating an animated or moving model in the engine, the lighting calculations are only done for the two brightest light sources. All the other lights, as well as bounced light from the environment, go into a simple single cubemap. This is the position the model uses for that cubemap.

You can optionally specify a bone name for the illum position. If you do, the position specified will be interpreted as being relative to the specified bone.

Syntax

$illumposition (x) (y) (z) [bone name]

Example

$illumposition 0.000 0.048 -0.115
Warning icon.png
This article has been marked as a candidate for speedy deletion because it is unused.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.