Difference between revisions of "Light directional"

From Valve Developer Community
Jump to: navigation, search
(Cleanup)
Line 1: Line 1:
{{l4d series point|light_directional}}
+
{{base point|light_directional|internal=true|since=Left 4 Dead}} It is a directional light with no falloff, similar to [[light_environment]].
  
== Entity description ==
+
{{bug|Non-functional in [[Alien Swarm]].}}
[[File:light_environment.png|left|link=]]
 
A directional light with no falloff. Similar to sunlight in [[light_environment]].
 
{{clr}}
 
  
 
== Keyvalues ==
 
== Keyvalues ==
 +
 
{{KV|Pitch|integer|The downward pitch of the light from the sun. 0 is horizontal, -90 is straight down.}}
 
{{KV|Pitch|integer|The downward pitch of the light from the sun. 0 is horizontal, -90 is straight down.}}
 
{{KV|Brightness|color255|The RGB color and brightness of the light. Colors must be between 0 and 255; brightness can be anything.}}
 
{{KV|Brightness|color255|The RGB color and brightness of the light. Colors must be between 0 and 255; brightness can be anything.}}

Revision as of 16:52, 26 June 2011

light_directional is an internal point entity available in all Source games since <Left 4 Dead> Left 4 Dead. It is a directional light with no falloff, similar to light_environment.

Bug: Non-functional in Alien Swarm.

Keyvalues

Pitch <integer>
The downward pitch of the light from the sun. 0 is horizontal, -90 is straight down.
Brightness <color255>
The RGB color and brightness of the light. Colors must be between 0 and 255; brightness can be anything.
BrightnessHDR <color255>
Brightness override used in HDR mode. Default is -1 -1 -1 1, which means no change. Warning: The fourth digit must be positive. Otherwise all light will be sucked out of your map!
BrightnessScaleHDR <float>
Amount to scale the light by when compiling for HDR.
SpreadAngle <float>
The angular extent of the light for casting soft shadows. Higher numbers are more diffuse. 5 is a good starting value.

Angles:

Pitch Yaw Roll (Y Z X) <angle>
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.