light_environment

A light_environment is the sun, which the map compiler uses to light every face that sees the sky. Its color, its
brightness and its angle also light the models in the game.
Attributes
The entity also has these common keys:
- Position: Pitch Yaw Roll
- Compiler keys of lights: ZHLT Fade and ZHLT Falloff
targetnameTriggering the entity switches the sunlight on or off, and the map compiler gives a sun with a name its own light style. See Common keys.
pitchSets the up and down angle of the sun, where a negative number points the sun down, and -90 points straight down.
If you leave this key empty, it is the pitch of Pitch Yaw Roll, and 0 puts the sun level with the horizon.
-90_lightSets the color of the sun, as R G B, and its brightness. It also sets the light of the models in the game, the engine setting sv_skycolor, which the map sets from this key and which stays on when a sun with a name is dark.
255 255 128 200_spreadSets the angle in degrees over which the map compiler spreads the sunlight for soft sun shadows, where 0 gives hard shadows. ZHLT doesn't read it.
0_diffuse_lightSets the color and the brightness the map compiler gives the light of the sky around the sun.
If you leave this key empty, it is the light of the sun.
_diffuse_light2Sets the color and the brightness of the light from the part of the sky opposite the sun. The map compiler blends the sky light from Ambient Color near the sun into this color on the other side. ZHLT doesn't read it.
If you leave this key empty, it is Ambient Color.
_fakeSets whether the map compiler lets the sun light the faces of the map. ZHLT doesn't read it.
- No (empty)
- Yes (1) - The sun only sets the light of the models
- No (empty) - The sun lights the faces and the models
No (empty)stylePicks the pattern the brightness of the sunlight follows, because the map compiler puts the light in that light style and the game plays the pattern. A sun with a Name ignores it.The 12 choices
Normal (0)patternFor a sun with a Name, sets its own pattern of brightness, as letters from a for dark through m for normal up to z for the brightest, played at 10 letters a second, up to 63 letters. It replaces Appearance.
Flags
1Initially darkThe sun starts off and turns on when you trigger it. It only works on a sun with a Name
See also
light- a light that shines in every directionenv_sky- a 3D sky- Light styles - how light patterns work
- light_environment on TWHL - the Half-Life entity