env_global_light is a point entity available with any version of Mapbase.

An orthographic projected texture that follows the player. Sorry, I don’t have the original FGD documentation here.



KeyValues

- Distance (distance) <float>
Height above the player where the projection originates from.
- FOV (fov) <float>
This is the field of view that the sunlight casts in. Use lower values to simulate a more distant sun and sharper shadows.
- NearZ (nearz) <float>
Distance from the player where the near Z plane is. Anything closer to the projection origin
- North Offset (northoffset) <float>
This offsets the from the player position where the sun is attached. (???)
- X Offset (eastoffset) <float>
X/East offset the from the player position.
- Y Offset (forwardoffset) <float>
Y/Forward offset the from the player position.
- Ortho Size (orthosize) <float>
The env_global_light's 'size', or how much ground it covers.
- Enable Shadows (enableshadows) <choices>
Enables shadows. If shadows are disabled, light may appear to go through objects. Disabling shadows may be ideal for lower-detail environments due to being less expensive.
- Light Color (lightcolor) <color255>
RGBA color of the sunlight. Intensity can only range from 0 to 255, so use the Brightness Scale keyvalue to make the sunlight brighter than 255.
- Color Transition Time (colortransitiontime) <float>
Amount of time it takes for a color or brightness change to occur. 0 = instant
- Brightness Scale (brightnessscale) <float>
The light color's brightness scale.
- Texture Name (texturename) <material>
None
- Texture Frame (textureframe) <integer>
Sets the frame of the env_global_light. Only relevant if the texture is animated/has multiple frames.

Inputs

- SetFOV <float>
Set the field of view the sun casts.
- SetTexture <string>
Set the texture cookie of the sunlight.
- EnableShadows <bool>
Set whether shadow maps are enabled
- LightColor <color255>
Set the light color.
- SetBrightness <float>
Sets brightness.
- SetColorTransitionTime <float>
Sets the color transition time.
- SetAngles <string>
Set the sun direction.
- SetDistance <float>
Set the distance of the sun.
- SetNearZDistance <float>
Set the near z distance.
- SetNorthOffset <float>
Sets the north offset.
- SetXOffset <float>
Sets the X offset.
- SetYOffset <float>
Sets the Y offset.
- SetOrthoSize <float>
Sets the light's size.