Env global light: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				mNo edit summary  | 
				||
| Line 13: | Line 13: | ||
{{KV|North Offset|float|This offsets the from the player position where the sun is attached.}}  | {{KV|North Offset|float|This offsets the from the player position where the sun is attached.}}  | ||
{{KV|Texture Name|material}}  | {{KV|Texture Name|material}}  | ||
{{KV|Enable Shadows|boolean|Enables/disables   | {{KV|Enable Shadows|boolean|Enables/disables [[shadow map]]s.}}  | ||
{{KV EnableDisable}}  | |||
{{KV Targetname}}  | {{KV Targetname}}  | ||
== Inputs ==  | == Inputs ==  | ||
| Line 25: | Line 25: | ||
{{IO|SetNorthOffset|Sets the north offset.|param=float}}  | {{IO|SetNorthOffset|Sets the north offset.|param=float}}  | ||
{{IO|SetTexture|Set the texture cookie of the sunlight.|param=string}}  | {{IO|SetTexture|Set the texture cookie of the sunlight.|param=string}}  | ||
{{IO|EnableShadows|Set   | {{IO|EnableShadows|Set whether [[shadow map]]s are enabled|param=boolean}}  | ||
{{I EnableDisable}}  | |||
{{I Targetname}}  | {{I Targetname}}  | ||
== Outputs ==  | == Outputs ==  | ||
{{O Targetname}}  | {{O Targetname}}  | ||
Revision as of 06:41, 15 August 2011
Template:Base point It casts an orthographic shadow map onto the world, centred on the camera. It is only designed to work from top-down cameras.
Template:Game link will be the first Valve game to use this entity.
Keyvalues
- Pitch Yaw Roll (Y Z X) ([todo internal name (i)]) <string>
 - This is the light cast direction. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, and roll is the rotation around the X axis.
 
- Color Transition Time ([todo internal name (i)]) <float>
 - This is the number of seconds it takes to get from 0 to 255.
 
- Distance ([todo internal name (i)]) <float>
 - This is the distance of the sun, greater distances produce more orthogonal shadows.
 
- FOV ([todo internal name (i)]) <float>
 - This is the field of view that the sunlight casts in. Use lower values for more distant sun and sharper shadows.
 
- NearZ Distance ([todo internal name (i)]) <float>
 - This controls the near clipping plane's distance from the player.
 
- North Offset ([todo internal name (i)]) <float>
 - This offsets the from the player position where the sun is attached.
 
- Enable Shadows ([todo internal name (i)]) <boolean>
 - Enables/disables shadow maps.
 
- Start Disabled (StartDisabled) <boolean>
 - Stay dormant until activated (with the
Enableinput). 
- Name (targetname) <string>[ Edit ]
 - The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. 
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities 
Inputs
- LightColor <color255>
 - Set the light color.
 
- SetAngles <string>
 - Set the sun direction.
 
- SetDistance <float>
 - Set the distance of the sun.
 
- SetFOV <float>
 - Set the field of view the sun casts.
 
- SetNearZDistance <float>
 - Set the near z distance.
 
- SetNorthOffset <float>
 - Sets the north offset.
 
- SetTexture <string>
 - Set the texture cookie of the sunlight.
 
- EnableShadows <boolean>
 - Set whether shadow maps are enabled
 
EnableDisable:
- Enable / Disable
 - Enable/disable this entity from performing its task. It might also disappear from view.