Light deferred global: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				 (Remove desolation todo, the mod isn't even out yet so there's no point of trying to document its internals right now)  | 
				||
| (19 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{LanguageBar}}  | ||
{{this is a|name=  | [[File:Light_environment.png|left|link=]]  | ||
{{this is a|point entity|name=light_deferred_global|game=Alien Swarm Deferred|game1=Lambda Wars}}  | |||
It creates real time shadows and lighting coming from the sun. Similar to [[  | It creates real-time shadows and lighting coming from the sun. Similar to {{ent|env_cascade_light}}. While this entity can be edited in {{hammer|3.1}}, it's preferable to use the games [[light editor]] as you can see what you are doing.  | ||
{{code class|CDeferredLightGlobal|CDefLightGlobal.cpp}}  | |||
{{clr-left}}  | {{clr-left}}  | ||
== Keyvalues ==  | == Keyvalues ==  | ||
{{KV Targetname}}  | |||
{{KV Angles}}  | |||
{{KV|Color diffuse|intn=diffuse|color255 + int|Sets the light's color and brightness.}}  | {{KV|Color diffuse|intn=diffuse|color255 + int|Sets the light's color and brightness.}}  | ||
{{KV|Color ambient high|intn=ambient_high|color255 + int|Sets the light's ambient color and brightness.}}  | {{KV|Color ambient high|intn=ambient_high|color255 + int|Sets the light's ambient color and brightness.}}  | ||
{{KV|Color ambient low|intn=ambient_low|color255 + int|  | {{KV|Color ambient low|intn=ambient_low|color255 + int|{{todo|Whats the difference between this and High?}}}}  | ||
{{KV|Fade interval time|intn=fadetime|float|{{todo|What does this do?}}}}  | {{KV|Fade interval time|intn=fadetime|float|{{todo|What does this do?}}}}  | ||
| Line 16: | Line 19: | ||
{{Fl|2|Enable shadow|Enables dynamic shadows.}}  | {{Fl|2|Enable shadow|Enables dynamic shadows.}}  | ||
{{Fl|4|Enable transitions}}{{todo|what does this do?}}  | {{Fl|4|Enable transitions}}{{todo|what does this do?}}  | ||
== See also==  | == See also==  | ||
* [[  | * {{ent|light_environment}}  | ||
* [[CSM]]  | |||
* {{ent|Light_deferred}}  | |||
* [[Lighting]]  | * [[Lighting]]  | ||
* [[Adding Light]]  | * [[Adding Light]]  | ||
* [[Intermediate Lighting]]  | * [[Intermediate Lighting]]  | ||
* [[Advanced Lighting]]  | * [[Advanced Lighting]]__NOTOC__  | ||
[[Category:Alien Swarm]]  | |||
[[Category:Lighting]]  | |||
[[Category:Alien Swarm Deferred]]  | |||
Latest revision as of 13:38, 30 June 2025

light_deferred_global  is a   point entity  available in 
 Alien Swarm Deferred and 
 Lambda Wars.
It creates real-time shadows and lighting coming from the sun. Similar to env_cascade_light. While this entity can be edited in Hammer, it's preferable to use the games light editor as you can see what you are doing.
Keyvalues
- 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 
- 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.
 
- Fade interval time (fadetime) <float>
 - Todo: What does this do?
 
Flags
- Enabled : [1]
 - Turns the light on.
 
- Enable shadow : [2]
 - Enables dynamic shadows.
 
- Enable transitions : [4]Todo: what does this do?