Light environment (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Warning:
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{Entitytabs → {{tabs) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
| Line 6: | Line 6: | ||
== Key values == | == Key values == | ||
{{todo|Document {{code|_diffuse_light}} and {{code|_spread}}, added with [[ZHLT]].}} | |||
; Pitch <code><[[QAngle|angle]]></code> | ; Pitch <code><[[QAngle|angle]]></code> | ||
: Overrides the pitch value in Angles, even if left at 0, so it needs to be specified. Contrary to Angles, the rotation of this pitch is measured counter-clockwise from the horizontal, so that 90 is straight up, while -90 is straight down. (It's simply the negative of a normal pitch value.) | : Overrides the pitch value in Angles, even if left at 0, so it needs to be specified. Contrary to Angles, the rotation of this pitch is measured counter-clockwise from the horizontal, so that 90 is straight up, while -90 is straight down. (It's simply the negative of a normal pitch value.) | ||
Revision as of 07:31, 20 January 2024
light_environment is an e0 available in all
GoldSrc games.
- The
{{{engine}}}parameter is inconsistent with the name defined by the {{gldsrc}} template. This can most likely be fixed by setting the value of the{{{engine}}}parameter toGoldSrc.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
Description
Creates the sunlight emitted from sky brushes. There needs to be one per PVS if using the default compile tools. Only one is needed per map if using the ZHLT compile tools.
Key values
Todo: Document
_diffuse_light and _spread, added with ZHLT.- Pitch
<angle> - Overrides the pitch value in Angles, even if left at 0, so it needs to be specified. Contrary to Angles, the rotation of this pitch is measured counter-clockwise from the horizontal, so that 90 is straight up, while -90 is straight down. (It's simply the negative of a normal pitch value.)
- Brightness
<color255 + int> - Color and brightness of direct Sunlight.
- Name (targetname) <string>
- The targetname that other entities refer to this entity by, usually via the target, killtarget, and TriggerTarget KVs.
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
ZHLT:
- Copy lighting from (VHLT+) (zhlt_copylight) <targetname>
- Copies the lighting from the named entity to the nearest lightmap luxel below this entity's origin.
Tip:To avoid having the copied lighting visibly affecting the brush lighting, put a 16x16x1 func_detail with zhlt_noclipenabled directly below this model's origin. Texture the top face withblack_HIDDEN, and the rest of the faces withSKIP. If the player or any other MDL entity can go above this model, place another identical func_detail above this model's origin to reduce the chance of extraneous models being lit weirdly.
Note:Not compatible with entities using the effect flag EF_INVLIGHT.
- Model shadows (UMHLT, SDHLT) (zhlt_studioshadow) <boolean>
- Enable to cast shadows from MDLs found in the
modelKV.
- Model shadow mode (SDHLT) (zhlt_shadowmode) <choices>
- 0 - Use Bounding Box
- 1 - Use triangles (default)
- 2 - Use Bounding boxes of triangles